From 3c416270b66418162ee0c8fdd4ce3f1951036bb5 Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 26 Aug 2007 17:51:39 +0000 Subject: [PATCH] Let qemu work with latest bochsbios, by Bernhard Kauer. --- hw/pc.c | 3 +++ vl.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/pc.c b/hw/pc.c index 495f6c0333..7d86f32d53 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -197,6 +197,9 @@ static void cmos_init(int ram_size, int boot_device, BlockDriverState **hd_table case 'd': rtc_set_memory(s, 0x3d, 0x03); /* CD-ROM boot */ break; + case 'n': + rtc_set_memory(s, 0x3d, 0x04); /* Network boot */ + break; } /* floppy type */ diff --git a/vl.c b/vl.c index 53b46259ab..3074d93c2e 100644 --- a/vl.c +++ b/vl.c @@ -8203,7 +8203,6 @@ int main(int argc, char **argv) fprintf(stderr, "No valid PXE rom found for network device\n"); exit(1); } - boot_device = 'c'; /* to prevent confusion by the BIOS */ } #endif -- 2.11.4.GIT