summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/vgabios/testbios.c6
-rw-r--r--util/vgabios/x86emu/src/x86emu/decode.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/util/vgabios/testbios.c b/util/vgabios/testbios.c
index 891e5d2ad7..541f460588 100644
--- a/util/vgabios/testbios.c
+++ b/util/vgabios/testbios.c
@@ -7,6 +7,7 @@
#include <getopt.h>
#define die(x) { perror(x); exit(1); }
+#define warn(x) { perror(x); }
#include <x86emu.h>
#include "test.h"
@@ -258,8 +259,9 @@ int main(int argc, char **argv)
X86EMU_setupPioFuncs(&myfuncs);
ioperm(0, 0x400, 1);
- if (iopl(3) < 0)
- die("iopl");
+ if (iopl(3) < 0) {
+ warn("iopl failed, continuing anyway");
+ }
/* Emergency sync ;-) */
sync();
diff --git a/util/vgabios/x86emu/src/x86emu/decode.c b/util/vgabios/x86emu/src/x86emu/decode.c
index 3844d985f9..a97edd92a6 100644
--- a/util/vgabios/x86emu/src/x86emu/decode.c
+++ b/util/vgabios/x86emu/src/x86emu/decode.c
@@ -669,7 +669,12 @@ u16 *decode_rm_seg_register(int reg)
DECODE_PRINTF("DS");
return &M.x86.R_DS;
case 4:
- case 5:
+ DECODE_PRINTF("FS");
+ return &M.x86.R_FS;
+ case 5:
+ DECODE_PRINTF("GS");
+ return &M.x86.R_GS;
+
case 6:
case 7:
DECODE_PRINTF("ILLEGAL SEGREG");