aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/pc.c3
-rw-r--r--vl.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 495f6c0..7d86f32 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 53b4625..3074d93 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