Changeset faed5fa in rtems


Ignore:
Timestamp:
Nov 22, 2004, 10:15:47 PM (16 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8eaa3ea
Parents:
270ce1ff
Message:

2004-11-22 Jennifer Averett <jennifer@…>

PR 581/bsps

  • mpc6xx/exceptions/raw_exception.c, shared/include/cpuIdent.h: Converting PSIM to new exception model required adding PSIM as PowerPC CPU model.
Location:
c/src/lib/libcpu/powerpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r270ce1ff rfaed5fa  
     12004-11-22      Jennifer Averett <jennifer@OARcorp.com>
     2
     3        PR 581/bsps
     4        * mpc6xx/exceptions/raw_exception.c, shared/include/cpuIdent.h:
     5        Converting PSIM to new exception model required adding PSIM as
     6        PowerPC CPU model.
     7
    182004-11-20      Ralf Corsepius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.c

    r270ce1ff rfaed5fa  
    6666  default: return 0;
    6767  }
     68}
     69
     70int PSIM_vector_is_valid(rtems_vector vector)
     71{
     72  switch(vector) {
     73  case ASM_RESET_VECTOR: /* fall through */
     74  case ASM_MACH_VECTOR:
     75  case ASM_PROT_VECTOR:
     76  case ASM_ISI_VECTOR:
     77  case ASM_EXT_VECTOR:
     78  case ASM_ALIGN_VECTOR:
     79  case ASM_PROG_VECTOR:
     80  case ASM_FLOAT_VECTOR:
     81  case ASM_DEC_VECTOR:
     82    return 1;
     83  case ASM_SYS_VECTOR:
     84    return 0;
     85  case ASM_TRACE_VECTOR:
     86    return 1;
     87  case ASM_PERFMON_VECTOR:
     88    return 0;
     89  case ASM_IMISS_VECTOR: /* fall through */
     90  case ASM_DLMISS_VECTOR:
     91  case ASM_DSMISS_VECTOR:
     92  case ASM_ADDR_VECTOR:
     93  case ASM_SYSMGMT_VECTOR:
     94    return 1;
     95  case ASM_ITM_VECTOR:
     96    return 0;
     97  }
     98  return 0;
    6899}
    69100
     
    153184            }
    154185            break;
     186        case PPC_PSIM:
     187            if (!PSIM_vector_is_valid(vector)) {
     188                return 0;
     189            }
     190            break;
    155191         default:
    156192            printk("Please complete "
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h

    r270ce1ff rfaed5fa  
    3939  PPC_8245 = 0x8081,
    4040  PPC_603le = 0x8082, /* 603le core, in MGT5100 and MPC5200 */
     41  PPC_PSIM = 0xfffe,  /* GDB PowerPC simulator -- fake version */
    4142  PPC_UNKNOWN = 0xffff
    4243} ppc_cpu_id_t;
Note: See TracChangeset for help on using the changeset viewer.