simplify dump .bochsrc for clock sync option
This commit is contained in:
parent
af65d7e953
commit
59f0445699
@ -3136,24 +3136,7 @@ int bx_write_loader_options(FILE *fp)
|
||||
|
||||
int bx_write_clock_cmos_options(FILE *fp)
|
||||
{
|
||||
fprintf(fp, "clock: ");
|
||||
|
||||
switch (SIM->get_param_enum(BXPN_CLOCK_SYNC)->get()) {
|
||||
case BX_CLOCK_SYNC_NONE:
|
||||
fprintf(fp, "sync=none");
|
||||
break;
|
||||
case BX_CLOCK_SYNC_REALTIME:
|
||||
fprintf(fp, "sync=realtime");
|
||||
break;
|
||||
case BX_CLOCK_SYNC_SLOWDOWN:
|
||||
fprintf(fp, "sync=slowdown");
|
||||
break;
|
||||
case BX_CLOCK_SYNC_BOTH:
|
||||
fprintf(fp, "sync=both");
|
||||
break;
|
||||
default:
|
||||
BX_PANIC(("Unknown value for sync method"));
|
||||
}
|
||||
fprintf(fp, "clock: sync=%s", SIM->get_param_enum(BXPN_CLOCK_SYNC)->get_selected());
|
||||
|
||||
switch (SIM->get_param_num(BXPN_CLOCK_TIME0)->get()) {
|
||||
case 0: break;
|
||||
|
Loading…
Reference in New Issue
Block a user