From: Gerd Hoffmann Date: Fri, 4 Jan 2013 16:12:18 +0000 (+0100) Subject: m48t59-test: don't touch watchdog X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=067f0691277325dcce8401534d2ffc6164305021;p=qemu.git m48t59-test: don't touch watchdog Signed-off-by: Gerd Hoffmann --- diff --git a/tests/m48t59-test.c b/tests/m48t59-test.c index 5179681ca5..d79f55472d 100644 --- a/tests/m48t59-test.c +++ b/tests/m48t59-test.c @@ -233,6 +233,11 @@ static void fuzz_registers(void) reg = (uint8_t)g_test_rand_int_range(0, 16); val = (uint8_t)g_test_rand_int_range(0, 256); + if (reg == 7) { + /* watchdog setup register, may trigger system reset, skip */ + continue; + } + cmos_write(reg, val); cmos_read(reg); }