mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
ppc/pnv: Move the PNOR LPC address into struct PnvPnor
Rather than use the hardcoded define throughout the tree for the
PNOR LPC address, keep it within the PnvPnor object.
This should solve a dead code issue in the BMC HIOMAP checks where
Coverity (correctly) reported that the sanity checks are dead code.
We would like to keep the sanity checks without turning them into a
compile time assert in case we would like to make them configurable
in future.
Fixes: 4c84a0a4a6
("ppc/pnv: Add a PNOR address and size sanity checks")
Resolves: Coverity CID 1593723
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
965797d19a
commit
ce5a32d180
4 changed files with 6 additions and 3 deletions
|
@ -28,6 +28,7 @@ struct PnvPnor {
|
|||
BlockBackend *blk;
|
||||
|
||||
uint8_t *storage;
|
||||
uint32_t lpc_address; /* Offset within LPC FW space */
|
||||
int64_t size;
|
||||
MemoryRegion mmio;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue