summaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-03-11 14:38:55 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-13 16:50:54 +0100
commitc6dc6f63bf7ee418c0a430a8b3386817ede69940 (patch)
tree908804c8272af5f1f6ee6539336337da52aa9fdc /target-i386/cpu.h
parenta6c6f76ceb95a0986fd1a36cc30f8241734d20c3 (diff)
downloadqemu-c6dc6f63bf7ee418c0a430a8b3386817ede69940.tar.gz
qemu-c6dc6f63bf7ee418c0a430a8b3386817ede69940.tar.bz2
qemu-c6dc6f63bf7ee418c0a430a8b3386817ede69940.zip
x86/cpuid: move CPUID functions into separate file
about half of target-i386/helper.c consist of CPUID related functions. Only one of them is a real TCG helper function. So move the whole CPUID stuff out of this into a separate file to get better maintainable parts. This is only code reordering and should not affect QEMU's functionality. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 198ea7d2fd..548ab80a3d 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -822,14 +822,17 @@ void cpu_x86_frstor(CPUX86State *s, target_ulong ptr, int data32);
int cpu_x86_signal_handler(int host_signum, void *pinfo,
void *puc);
+/* cpuid.c */
+void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
+ uint32_t *eax, uint32_t *ebx,
+ uint32_t *ecx, uint32_t *edx);
+int cpu_x86_register (CPUX86State *env, const char *cpu_model);
+
/* helper.c */
int cpu_x86_handle_mmu_fault(CPUX86State *env, target_ulong addr,
int is_write, int mmu_idx, int is_softmmu);
#define cpu_handle_mmu_fault cpu_x86_handle_mmu_fault
void cpu_x86_set_a20(CPUX86State *env, int a20_state);
-void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
- uint32_t *eax, uint32_t *ebx,
- uint32_t *ecx, uint32_t *edx);
static inline int hw_breakpoint_enabled(unsigned long dr7, int index)
{