mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Replace cpu_abort with hw_error
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
e612a1f725
commit
2ac711791b
47 changed files with 180 additions and 262 deletions
|
@ -893,7 +893,7 @@ static uint16_t tsc210x_read(struct tsc210x_state_s *s)
|
|||
ret = tsc2102_audio_register_read(s, s->offset);
|
||||
break;
|
||||
default:
|
||||
cpu_abort(cpu_single_env, "tsc210x_read: wrong memory page\n");
|
||||
hw_error("tsc210x_read: wrong memory page\n");
|
||||
}
|
||||
|
||||
tsc210x_pin_update(s);
|
||||
|
@ -930,8 +930,7 @@ static void tsc210x_write(struct tsc210x_state_s *s, uint16_t value)
|
|||
tsc2102_audio_register_write(s, s->offset, value);
|
||||
break;
|
||||
default:
|
||||
cpu_abort(cpu_single_env,
|
||||
"tsc210x_write: wrong memory page\n");
|
||||
hw_error("tsc210x_write: wrong memory page\n");
|
||||
}
|
||||
|
||||
tsc210x_pin_update(s);
|
||||
|
@ -945,8 +944,7 @@ uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len)
|
|||
uint32_t ret = 0;
|
||||
|
||||
if (len != 16)
|
||||
cpu_abort(cpu_single_env, "%s: FIXME: bad SPI word width %i\n",
|
||||
__FUNCTION__, len);
|
||||
hw_error("%s: FIXME: bad SPI word width %i\n", __FUNCTION__, len);
|
||||
|
||||
/* TODO: sequential reads etc - how do we make sure the host doesn't
|
||||
* unintentionally read out a conversion result from a register while
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue