mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Register only valid register access widths
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3881 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ff403da6a7
commit
7c56045670
13 changed files with 112 additions and 107 deletions
|
@ -93,30 +93,6 @@ typedef struct ECCState {
|
|||
uint32_t regs[ECC_NREGS];
|
||||
} ECCState;
|
||||
|
||||
static void ecc_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
||||
{
|
||||
printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %02x\n",
|
||||
addr, val & 0xff);
|
||||
}
|
||||
|
||||
static uint32_t ecc_mem_readb(void *opaque, target_phys_addr_t addr)
|
||||
{
|
||||
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 00\n", addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ecc_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val)
|
||||
{
|
||||
printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %04x\n",
|
||||
addr, val & 0xffff);
|
||||
}
|
||||
|
||||
static uint32_t ecc_mem_readw(void *opaque, target_phys_addr_t addr)
|
||||
{
|
||||
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 0000\n", addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ecc_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val)
|
||||
{
|
||||
ECCState *s = opaque;
|
||||
|
@ -201,14 +177,14 @@ static uint32_t ecc_mem_readl(void *opaque, target_phys_addr_t addr)
|
|||
}
|
||||
|
||||
static CPUReadMemoryFunc *ecc_mem_read[3] = {
|
||||
ecc_mem_readb,
|
||||
ecc_mem_readw,
|
||||
NULL,
|
||||
NULL,
|
||||
ecc_mem_readl,
|
||||
};
|
||||
|
||||
static CPUWriteMemoryFunc *ecc_mem_write[3] = {
|
||||
ecc_mem_writeb,
|
||||
ecc_mem_writew,
|
||||
NULL,
|
||||
NULL,
|
||||
ecc_mem_writel,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue