mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/intc/arm_gicv3: Report correct PIDR0 values for ID registers
We use the common function gicv3_idreg() to supply the CoreSight ID register values for the GICv3 for the copies of these ID registers in the distributor, redistributor and ITS register frames. This isn't quite correct, because while most of the register values are the same, the PIDR0 value should vary to indicate which of these three frames it is. (You can see this and also the correct values of these PIDR0 registers by looking at the GIC-600 or GIC-700 TRMs, for example.) Make gicv3_idreg() take an extra argument for the PIDR0 value. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220408141550.1271295-5-peter.maydell@linaro.org
This commit is contained in:
parent
671927a116
commit
50a3a309e1
4 changed files with 16 additions and 5 deletions
|
@ -234,7 +234,7 @@ static MemTxResult gicr_readl(GICv3CPUState *cs, hwaddr offset,
|
|||
*data = cs->gicr_nsacr;
|
||||
return MEMTX_OK;
|
||||
case GICR_IDREGS ... GICR_IDREGS + 0x2f:
|
||||
*data = gicv3_idreg(offset - GICR_IDREGS);
|
||||
*data = gicv3_idreg(offset - GICR_IDREGS, GICV3_PIDR0_REDIST);
|
||||
return MEMTX_OK;
|
||||
default:
|
||||
return MEMTX_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue