summaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-13 11:49:17 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-13 11:49:17 +0000
commit3a7b779e4a3a0d78351063bbc34a9a4bfd42bee4 (patch)
treee0a4e15127e792a92b9f9cc27e52e59b77f81b2c /target-i386/helper.c
parent2558ae7105bffe5e0f149b38004a142b935bac50 (diff)
downloadqemu-3a7b779e4a3a0d78351063bbc34a9a4bfd42bee4.tar.gz
qemu-3a7b779e4a3a0d78351063bbc34a9a4bfd42bee4.tar.bz2
qemu-3a7b779e4a3a0d78351063bbc34a9a4bfd42bee4.zip
x86 cleanup
Remove some unnecessary includes, add needed includes, move prototypes to cpu.h to suppress missing prototype warnings. Remove unused functions and prototypes (cpu_x86_flush_tlb, cpu_lock, cpu_unlock, restore_native_fp_state, save_native_fp_state). Make some functions and data static (f15rk, parity_table, rclw_table, rclb_table, raise_interrupt, fpu_raise_exception), they are not used outside op_helper.c anymore. Make some x86_64 and user only code conditional to avoid warnings. Document where each function is implemented in cpu.h and exec.h. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6005 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index f2d91df0f6..7d3321adea 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -27,10 +27,8 @@
#include "cpu.h"
#include "exec-all.h"
-#include "svm.h"
#include "qemu-common.h"
#include "kvm.h"
-#include "helper.h"
//#define DEBUG_MMU
@@ -849,12 +847,6 @@ void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4)
env->cr[4] = new_cr4;
}
-/* XXX: also flush 4MB pages */
-void cpu_x86_flush_tlb(CPUX86State *env, target_ulong addr)
-{
- tlb_flush_page(env, addr);
-}
-
#if defined(CONFIG_USER_ONLY)
int cpu_x86_handle_mmu_fault(CPUX86State *env, target_ulong addr,