Replace cpu_abort with hw_error

Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
Paul Brook 2009-05-08 02:35:15 +01:00
parent e612a1f725
commit 2ac711791b
47 changed files with 180 additions and 262 deletions

View file

@ -343,7 +343,7 @@ static uint32_t gic_dist_readb(void *opaque, target_phys_addr_t offset)
}
return res;
bad_reg:
cpu_abort(cpu_single_env, "gic_dist_readb: Bad offset %x\n", (int)offset);
hw_error("gic_dist_readb: Bad offset %x\n", (int)offset);
return 0;
}
@ -505,7 +505,7 @@ static void gic_dist_writeb(void *opaque, target_phys_addr_t offset,
gic_update(s);
return;
bad_reg:
cpu_abort(cpu_single_env, "gic_dist_writeb: Bad offset %x\n", (int)offset);
hw_error("gic_dist_writeb: Bad offset %x\n", (int)offset);
}
static void gic_dist_writew(void *opaque, target_phys_addr_t offset,
@ -587,8 +587,7 @@ static uint32_t gic_cpu_read(gic_state *s, int cpu, int offset)
case 0x18: /* Highest Pending Interrupt */
return s->current_pending[cpu];
default:
cpu_abort(cpu_single_env, "gic_cpu_read: Bad offset %x\n",
(int)offset);
hw_error("gic_cpu_read: Bad offset %x\n", (int)offset);
return 0;
}
}
@ -609,8 +608,7 @@ static void gic_cpu_write(gic_state *s, int cpu, int offset, uint32_t value)
case 0x10: /* End Of Interrupt */
return gic_complete_irq(s, cpu, value & 0x3ff);
default:
cpu_abort(cpu_single_env, "gic_cpu_write: Bad offset %x\n",
(int)offset);
hw_error("gic_cpu_write: Bad offset %x\n", (int)offset);
return;
}
gic_update(s);