Skip to content

Commit

Permalink
xilinx_axienet: Implement R_IS behaviour
Browse files Browse the repository at this point in the history
The interrupt status register R_IS is the standard clear-on-write behaviour.
This was unimplemented and defaulting to updating the register to the written
value. Implemented clear-on-write.

Reported-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
  • Loading branch information
pete128 authored and edgarigl committed Dec 5, 2012
1 parent 16c6c80 commit d4d230d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/xilinx_axienet.c
Expand Up @@ -591,6 +591,10 @@ static void enet_write(void *opaque, hwaddr addr,
s->maddr[s->fmi & 3][addr & 1] = value;
break;

case R_IS:
s->regs[addr] &= ~value;
break;

case 0x8000 ... 0x83ff:
s->ext_mtable[addr - 0x8000] = value;
break;
Expand Down

0 comments on commit d4d230d

Please sign in to comment.