diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 13:03:23 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 13:03:23 +0000 |
commit | be147d08790d4d80bfcf2c209031eede52b7dd62 (patch) | |
tree | e21320c4e76c6d1d3b8c5fe2488ed5a6c22fa92e /target-ppc/cpu.h | |
parent | b0566f4f4584ca1c968daf64007df58cb5a21038 (diff) |
* Update OEA environment, following the PowerPC 2.04 specification:
- New mtmsr/mtmsrd form that just update RI and EE bits
- New hrfid, lq and stq instructions
- Add support for supervisor and hypervisor modes process priority update
- Code provision for hypervisor SPR accesses
* Actually implement the wait instruction
* Bugfixes (missing RETURN in micro-op / missing #ifdef)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3289 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 791f305242..53f4af3d21 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -287,6 +287,7 @@ enum { #define PPC_INPUT(env) (env->bus_model) +/*****************************************************************************/ typedef struct ppc_def_t ppc_def_t; typedef struct opc_handler_t opc_handler_t; @@ -306,6 +307,10 @@ struct ppc_spr_t { #if !defined(CONFIG_USER_ONLY) void (*oea_read)(void *opaque, int spr_num); void (*oea_write)(void *opaque, int spr_num); +#if defined(TARGET_PPC64H) + void (*hea_read)(void *opaque, int spr_num); + void (*hea_write)(void *opaque, int spr_num); +#endif #endif const unsigned char *name; }; @@ -607,7 +612,9 @@ target_ulong ppc_load_xer (CPUPPCState *env); void ppc_store_xer (CPUPPCState *env, target_ulong value); target_ulong do_load_msr (CPUPPCState *env); void do_store_msr (CPUPPCState *env, target_ulong value); +#if defined(TARGET_PPC64) void ppc_store_msr_32 (CPUPPCState *env, uint32_t value); +#endif void do_compute_hflags (CPUPPCState *env); void cpu_ppc_reset (void *opaque); |