diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-02 17:47:02 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-02 17:47:02 +0000 |
commit | e64d7d595f9454d29de7110e3ec6591105c8e467 (patch) | |
tree | 26eaa11fc8ea8b8817b0e6e99fabaa8af196973a /hw/tcx.c | |
parent | 0e8f096751f279a8de01d9c66c87911ec431fa4c (diff) |
Remove address masking
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5853 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tcx.c')
-rw-r--r-- | hw/tcx.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -437,15 +437,13 @@ static uint32_t tcx_dac_readl(void *opaque, target_phys_addr_t addr) static void tcx_dac_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { TCXState *s = opaque; - uint32_t saddr; - saddr = (addr & (TCX_DAC_NREGS - 1)) >> 2; - switch (saddr) { + switch (addr) { case 0: s->dac_index = val >> 24; s->dac_state = 0; break; - case 1: + case 4: switch (s->dac_state) { case 0: s->r[s->dac_index] = val >> 24; |