diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-08-19 21:43:54 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-08-19 21:43:54 +0000 |
commit | c0009975ca00b279071973ab22ff9798fee650ab (patch) | |
tree | c1f409c4a382f6a87b7071086a6aa8c466e678a4 /darwin-user/main.c | |
parent | 7f27bae69d4e4bd05bf3eafedce74a41d7fc35e8 (diff) |
Darwin-user: Compile fix for ppc targets, by Pierre d'Herbemont.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3123 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'darwin-user/main.c')
-rw-r--r-- | darwin-user/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/darwin-user/main.c b/darwin-user/main.c index 78cf864c1e..fd62fc1b86 100644 --- a/darwin-user/main.c +++ b/darwin-user/main.c @@ -150,6 +150,21 @@ void cpu_ppc_store_decr (CPUState *env, uint32_t value) /* TO FIX */ } +void cpu_ppc601_store_rtcu (CPUState *env, uint32_t value) +{ + cpu_ppc_store_tbu( env, value ); +} + +uint32_t cpu_ppc601_load_rtcu (CPUState *env) +{ + cpu_ppc_load_tbu(env); +} + +uint32_t cpu_ppc601_load_rtcl (CPUState *env) +{ + return cpu_ppc_load_tbl(env) & 0x3FFFFF80; +} + void cpu_loop(CPUPPCState *env) { int trapnr; |