b5ed665095
Holland. QEMU is a FAST! processor emulator using dynamic translation to achieve good emulation speed, QEMU has two operating modes: * Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including a processor and various peripherals. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. * User mode emulation (Linux host only). In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. It can be used to launch the Wine Windows API emulator or to ease cross-compilation and cross-debugging. -- It's nice to see NetBSD/x86 running perfectly with QEMU!
20 lines
793 B
Text
20 lines
793 B
Text
$NetBSD: patch-ah,v 1.1.1.1 2004/11/09 13:05:34 xtraeme Exp $
|
|
|
|
--- target-i386/cpu.h.orig 2004-07-10 21:20:09.000000000 +0300
|
|
+++ target-i386/cpu.h
|
|
@@ -441,9 +441,15 @@ void cpu_x86_frstor(CPUX86State *s, uint
|
|
/* 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. */
|
|
+#ifdef __NetBSD__
|
|
+union siginfo;
|
|
+int cpu_x86_signal_handler(int host_signum, union siginfo *info,
|
|
+ void *puc);
|
|
+#else
|
|
struct siginfo;
|
|
int cpu_x86_signal_handler(int host_signum, struct siginfo *info,
|
|
void *puc);
|
|
+#endif
|
|
void cpu_x86_set_a20(CPUX86State *env, int a20_state);
|
|
|
|
uint64_t cpu_get_tsc(CPUX86State *env);
|