diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 13:03:35 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 13:03:35 +0000 |
commit | 6527f6ea9c2ab3116bd363457021b93bd531d858 (patch) | |
tree | 5778a04a73bd3fbb1fcbc6fc5d744081af92e9e7 /target-ppc/op_helper.c | |
parent | 22e0e173376d702bdd9757d308924b6df7cd6529 (diff) |
target-ppc: convert msr load/store to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5892 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r-- | target-ppc/op_helper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 7f028fa791..6137b0e748 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -1488,17 +1488,17 @@ uint32_t helper_fcmpo (uint64_t arg1, uint64_t arg2) } #if !defined (CONFIG_USER_ONLY) -void cpu_dump_rfi (target_ulong RA, target_ulong msr); - -void do_store_msr (void) +void helper_store_msr (target_ulong val) { - T0 = hreg_store_msr(env, T0, 0); - if (T0 != 0) { + val = hreg_store_msr(env, val, 0); + if (val != 0) { env->interrupt_request |= CPU_INTERRUPT_EXITTB; - raise_exception(env, T0); + raise_exception(env, val); } } +void cpu_dump_rfi (target_ulong RA, target_ulong msr); + static always_inline void do_rfi (target_ulong nip, target_ulong msr, target_ulong msrm, int keep_msrh) { |