summaryrefslogtreecommitdiffstats
path: root/target-ppc/op.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-16 07:10:48 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-16 07:10:48 +0000
commita496775f87da7f2c445b146e0b31d3895d4af1e0 (patch)
treecf216eb5fc64fda704327685859b4b825cda1834 /target-ppc/op.c
parent9898128f55e46b695a3d39ac091356c1c296e9b4 (diff)
downloadhqemu-a496775f87da7f2c445b146e0b31d3895d4af1e0.zip
hqemu-a496775f87da7f2c445b146e0b31d3895d4af1e0.tar.gz
Fix a lot of debug traces for PowerPC emulation: use logfile instead of stdout
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2677 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r--target-ppc/op.c33
1 files changed, 29 insertions, 4 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c
index 3a2f5f8..68828f5 100644
--- a/target-ppc/op.c
+++ b/target-ppc/op.c
@@ -130,6 +130,13 @@
#define REG 31
#include "op_template.h"
+
+void OPPROTO op_print_mem_EA (void)
+{
+ do_print_mem_EA(T0);
+ RETURN();
+}
+
/* PowerPC state maintenance operations */
/* set_Rc0 */
PPC_OP(set_Rc0)
@@ -360,15 +367,33 @@ void OPPROTO op_store_msr_32 (void)
#endif
/* SPR */
-PPC_OP(load_spr)
+void OPPROTO op_load_spr (void)
+{
+ T0 = env->spr[PARAM1];
+ RETURN();
+}
+
+void OPPROTO op_store_spr (void)
+{
+ env->spr[PARAM1] = T0;
+ RETURN();
+}
+
+void OPPROTO op_load_dump_spr (void)
+{
+ T0 = ppc_load_dump_spr(PARAM1);
+ RETURN();
+}
+
+void OPPROTO op_store_dump_spr (void)
{
- T0 = regs->spr[PARAM(1)];
+ ppc_store_dump_spr(PARAM1, T0);
RETURN();
}
-PPC_OP(store_spr)
+void OPPROTO op_mask_spr (void)
{
- regs->spr[PARAM(1)] = T0;
+ env->spr[PARAM1] &= ~T0;
RETURN();
}
OpenPOWER on IntegriCloud