diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 00:38:38 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 00:38:38 +0000 |
commit | a062e36c58738321295e1031bebb1b89a0cdf01a (patch) | |
tree | 46bc4ffc59fa6f26dd710a93cba5a18cbff9e5f2 /target-ppc/op.c | |
parent | 4887d78b01594d994d51db8d11c1a04e65fca032 (diff) |
Implement the PowerPC alternate time-base, following the 2.04 specification.
Share most code with the time-base management routines.
Remove time-base write routines from user-mode emulation environments.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3277 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r-- | target-ppc/op.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c index 976eb53046..4622534c27 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c @@ -423,6 +423,18 @@ void OPPROTO op_load_tbu (void) RETURN(); } +void OPPROTO op_load_atbl (void) +{ + T0 = cpu_ppc_load_atbl(env); + RETURN(); +} + +void OPPROTO op_load_atbu (void) +{ + T0 = cpu_ppc_load_atbu(env); + RETURN(); +} + #if !defined(CONFIG_USER_ONLY) void OPPROTO op_store_tbl (void) { @@ -436,6 +448,18 @@ void OPPROTO op_store_tbu (void) RETURN(); } +void OPPROTO op_store_atbl (void) +{ + cpu_ppc_store_atbl(env, T0); + RETURN(); +} + +void OPPROTO op_store_atbu (void) +{ + cpu_ppc_store_atbu(env, T0); + RETURN(); +} + void OPPROTO op_load_decr (void) { T0 = cpu_ppc_load_decr(env); |