]> Git Repo - qemu.git/blobdiff - target-i386/exec.h
converted condition code supprot to TCG - converted shift ops to TCG
[qemu.git] / target-i386 / exec.h
index 8f41b0daf3e56f4a1f38476043360ede834c09b2..8597e7953a7213b8ad26b208e134e1b4a2d8631d 100644 (file)
@@ -98,13 +98,6 @@ extern int loglevel;
 #include "cpu.h"
 #include "exec-all.h"
 
-typedef struct CCTable {
-    int (*compute_all)(void); /* return all the flags */
-    int (*compute_c)(void);  /* return the C flag */
-} CCTable;
-
-extern CCTable cc_table[];
-
 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0);
 void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3);
 void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4);
@@ -129,6 +122,15 @@ void __hidden cpu_loop_exit(void);
 void OPPROTO op_movl_eflags_T0(void);
 void OPPROTO op_movl_T0_eflags(void);
 
+/* n must be a constant to be efficient */
+static inline target_long lshift(target_long x, int n)
+{
+    if (n >= 0)
+        return x << n;
+    else
+        return x >> (-n);
+}
+
 #include "helper.h"
 
 static inline void svm_check_intercept(uint32_t type)
This page took 0.023448 seconds and 4 git commands to generate.