ftgmac100: Fix registers that can be read
Receive Ring Base Address Register (RXR_BADR) and the Normal Priority Transmit Receive Ring Base Address Register (NPTXR_BADR) can also be read. Cc: Frederic Konrad <konrad.frederic@yahoo.fr> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Message-Id: <20200819100956.2216690-10-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
f31e8f1318
commit
39161476ab
@ -669,6 +669,10 @@ static uint64_t ftgmac100_read(void *opaque, hwaddr addr, unsigned size)
|
||||
return s->math[0];
|
||||
case FTGMAC100_MATH1:
|
||||
return s->math[1];
|
||||
case FTGMAC100_RXR_BADR:
|
||||
return s->rx_ring;
|
||||
case FTGMAC100_NPTXR_BADR:
|
||||
return s->tx_ring;
|
||||
case FTGMAC100_ITC:
|
||||
return s->itc;
|
||||
case FTGMAC100_DBLAC:
|
||||
|
Loading…
Reference in New Issue
Block a user