Changeset f778d4c5 in rtems


Ignore:
Timestamp:
Nov 22, 2004, 10:32:47 PM (16 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Children:
848d015
Parents:
561f53b
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 addition of PSIM CPU model.
Location:
c/src/lib/libcpu/powerpc
Files:
3 edited

Legend:

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

    r561f53b rf778d4c5  
     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 addition of PSIM CPU
     6        model.
     7
    182004-11-10      Richard Campbell <richard.campbell@oarcorp.com>
    29
  • c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.c

    r561f53b rf778d4c5  
    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
     
    152183            }
    153184            break;
     185        case PPC_PSIM:
     186            if (!PSIM_vector_is_valid(vector)) {
     187                return 0;
     188            }
     189            break;
     190
    154191         default:
    155192            printk("Please complete "
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h

    r561f53b rf778d4c5  
    3535  PPC_8240 = PPC_8260,
    3636  PPC_8245 = 0x8081,
     37  PPC_PSIM = 0xfffe,  /* GDB PowerPC simulator -- fake version */
    3738  PPC_UNKNOWN = 0xffff
    3839} ppc_cpu_id_t;
Note: See TracChangeset for help on using the changeset viewer.