]> Git Repo - qemu.git/blobdiff - target-ppc/cpu.h
find -type f | xargs sed -i 's/[\t ]$//g' # on most files
[qemu.git] / target-ppc / cpu.h
index a25d30a62773d1d9d8d1c7d7e5d8c9b5f1328008..0b9c68cf05e974add365239b501ba8a917ffaab7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  PowerPC emulation cpu definitions for qemu.
- * 
+ *
  *  Copyright (c) 2003-2007 Jocelyn Mayer
  *
  * This library is free software; you can redistribute it and/or
@@ -692,8 +692,8 @@ struct CPUPPCState {
 #if TARGET_GPR_BITS > HOST_LONG_BITS
     /* temporary fixed-point registers
      * used to emulate 64 bits target on 32 bits hosts
-     */ 
-    target_ulong t0, t1, t2;
+     */
+    ppc_gpr_t t0, t1, t2;
 #endif
     ppc_avr_t t0_avr, t1_avr, t2_avr;
 
@@ -828,7 +828,7 @@ void cpu_ppc_close(CPUPPCState *s);
 /* you can call this signal handler from your SIGBUS and SIGSEGV
    signal handlers to inform the virtual CPU of exceptions. non zero
    is returned if the signal was handled by the virtual CPU.  */
-int cpu_ppc_signal_handler(int host_signum, void *pinfo, 
+int cpu_ppc_signal_handler(int host_signum, void *pinfo,
                            void *puc);
 
 void do_interrupt (CPUPPCState *env);
@@ -899,6 +899,12 @@ int ppcemb_tlb_search (CPUPPCState *env, target_ulong address);
 int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, target_ulong *valp);
 int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, target_ulong val);
 
+#define CPUState CPUPPCState
+#define cpu_init cpu_ppc_init
+#define cpu_exec cpu_ppc_exec
+#define cpu_gen_code cpu_ppc_gen_code
+#define cpu_signal_handler cpu_ppc_signal_handler
+
 #include "cpu-all.h"
 
 /*****************************************************************************/
@@ -1320,7 +1326,7 @@ enum {
     EXCP_FP_ZX         = 0x03,  /* FP divide by zero                */
     EXCP_FP_XX         = 0x04,  /* FP inexact                       */
     EXCP_FP_VXNAN      = 0x05,  /* FP invalid SNaN op               */
-    EXCP_FP_VXISI      = 0x06,  /* FP invalid infinite substraction */
+    EXCP_FP_VXISI      = 0x06,  /* FP invalid infinite subtraction */
     EXCP_FP_VXIDI      = 0x07,  /* FP invalid infinite divide       */
     EXCP_FP_VXZDZ      = 0x08,  /* FP invalid zero divide           */
     EXCP_FP_VXIMZ      = 0x09,  /* FP invalid infinite * zero       */
This page took 0.025157 seconds and 4 git commands to generate.