mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/m68k/mcf52xx: Replace hw_error() by qemu_log_mask()
hw_error() calls exit(). This a bit overkill when we can log the accesses as unimplemented or guest error. When fuzzing the devices, we don't want the whole process to exit. Replace some hw_error() calls by qemu_log_mask(). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200526094052.1723-3-f4bug@amsat.org> Reviewed-by: Thomas Huth <huth@tuxfamily.org> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
This commit is contained in:
parent
ccff1ae4df
commit
b809667808
4 changed files with 30 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/hw.h"
|
||||
#include "qemu/log.h"
|
||||
#include "hw/irq.h"
|
||||
#include "net/net.h"
|
||||
#include "qemu/module.h"
|
||||
|
@ -392,7 +392,8 @@ static uint64_t mcf_fec_read(void *opaque, hwaddr addr,
|
|||
case 0x188: return s->emrbr;
|
||||
case 0x200 ... 0x2e0: return s->mib[(addr & 0x1ff) / 4];
|
||||
default:
|
||||
hw_error("mcf_fec_read: Bad address 0x%x\n", (int)addr);
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad address 0x%" HWADDR_PRIX "\n",
|
||||
__func__, addr);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -492,7 +493,9 @@ static void mcf_fec_write(void *opaque, hwaddr addr,
|
|||
s->mib[(addr & 0x1ff) / 4] = value;
|
||||
break;
|
||||
default:
|
||||
hw_error("mcf_fec_write Bad address 0x%x\n", (int)addr);
|
||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad address 0x%" HWADDR_PRIX "\n",
|
||||
__func__, addr);
|
||||
return;
|
||||
}
|
||||
mcf_fec_update(s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue