summaryrefslogtreecommitdiff
path: root/hw/esp.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-02 17:47:02 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-02 17:47:02 +0000
commite64d7d595f9454d29de7110e3ec6591105c8e467 (patch)
tree26eaa11fc8ea8b8817b0e6e99fabaa8af196973a /hw/esp.c
parent0e8f096751f279a8de01d9c66c87911ec431fa4c (diff)
downloadqemu-e64d7d595f9454d29de7110e3ec6591105c8e467.tar.gz
qemu-e64d7d595f9454d29de7110e3ec6591105c8e467.tar.bz2
qemu-e64d7d595f9454d29de7110e3ec6591105c8e467.zip
Remove address masking
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5853 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/esp.c')
-rw-r--r--hw/esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/esp.c b/hw/esp.c
index d28229c4a7..c3dbae001f 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -425,7 +425,7 @@ static uint32_t esp_mem_readb(void *opaque, target_phys_addr_t addr)
ESPState *s = opaque;
uint32_t saddr;
- saddr = (addr >> s->it_shift) & (ESP_REGS - 1);
+ saddr = addr >> s->it_shift;
DPRINTF("read reg[%d]: 0x%2.2x\n", saddr, s->rregs[saddr]);
switch (saddr) {
case ESP_FIFO:
@@ -461,7 +461,7 @@ static void esp_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
ESPState *s = opaque;
uint32_t saddr;
- saddr = (addr >> s->it_shift) & (ESP_REGS - 1);
+ saddr = addr >> s->it_shift;
DPRINTF("write reg[%d]: 0x%2.2x -> 0x%2.2x\n", saddr, s->wregs[saddr],
val);
switch (saddr) {