From 2ac711791b2e4aabc5e4046b7428727828c705eb Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 8 May 2009 02:35:15 +0100 Subject: Replace cpu_abort with hw_error Signed-off-by: Paul Brook --- hw/etraxfs_dma.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'hw/etraxfs_dma.c') diff --git a/hw/etraxfs_dma.c b/hw/etraxfs_dma.c index e4bc82438b..12dd78db27 100644 --- a/hw/etraxfs_dma.c +++ b/hw/etraxfs_dma.c @@ -562,10 +562,7 @@ static inline int channel_in_run(struct fs_dma_ctrl *ctrl, int c) static uint32_t dma_rinvalid (void *opaque, target_phys_addr_t addr) { - struct fs_dma_ctrl *ctrl = opaque; - CPUState *env = ctrl->env; - cpu_abort(env, "Unsupported short access. reg=" TARGET_FMT_plx "\n", - addr); + hw_error("Unsupported short access. reg=" TARGET_FMT_plx "\n", addr); return 0; } @@ -600,10 +597,7 @@ dma_readl (void *opaque, target_phys_addr_t addr) static void dma_winvalid (void *opaque, target_phys_addr_t addr, uint32_t value) { - struct fs_dma_ctrl *ctrl = opaque; - CPUState *env = ctrl->env; - cpu_abort(env, "Unsupported short access. reg=" TARGET_FMT_plx "\n", - addr); + hw_error("Unsupported short access. reg=" TARGET_FMT_plx "\n", addr); } static void -- cgit v1.2.3