[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 13/14] dp8393x: Don't reset Silicon Revision register
From: |
Finn Thain |
Subject: |
Re: [PATCH v3 13/14] dp8393x: Don't reset Silicon Revision register |
Date: |
Wed, 29 Jan 2020 18:52:48 +1100 (AEDT) |
On Wed, 29 Jan 2020, Philippe Mathieu-Daudé wrote:
> >
> > This would allow the host to change the value of the Silicon Revision
> > register.
> How the guest can modify it? We have:
>
> 589 static void dp8393x_write(void *opaque, hwaddr addr, uint64_t data,
> 590 unsigned int size)
> 591 {
> 592 dp8393xState *s = opaque;
> 593 int reg = addr >> s->it_shift;
> 594
> ...
> 597 switch (reg) {
> ...
> 602 /* Prevent write to read-only registers */
> ...
> 606 case SONIC_SR:
> ...
> 608 DPRINTF("writing to reg %d invalid\n", reg);
> 609 break;
>
My mistake. I had completely overlooked that logic.
I'll revise this patch in accordance with your suggestion.
- [PATCH v3 09/14] dp8393x: Use long-word-aligned RRA pointers in 32-bit mode, (continued)
[PATCH v3 12/14] dp8393x: Always update RRA pointers and sequence numbers, Finn Thain, 2020/01/19
[PATCH v3 14/14] dp8393x: Don't stop reception upon RBE interrupt assertion, Finn Thain, 2020/01/19
Re: [PATCH v3 00/14] Fixes for DP8393X SONIC device emulation, Laurent Vivier, 2020/01/27
Re: [PATCH v3 00/14] Fixes for DP8393X SONIC device emulation, Finn Thain, 2020/01/27