mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
aspeed_sdmc: Fix saved values
This fixes the intended protection of read-only values in the configuration register. They were being always set to zero by mistake. The read-only fields depend on the configured memory size of the system, so they cannot be fixed at compile time. The most straight forward option was to store them in the state structure. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Tested-by: Cédric Le Goater <clg@kaod.org> Message-id: 20180807075757.7242-3-joel@jms.id.au Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
a40085d2ee
commit
d131bc28a6
2 changed files with 9 additions and 19 deletions
|
@ -27,6 +27,7 @@ typedef struct AspeedSDMCState {
|
|||
uint32_t silicon_rev;
|
||||
uint32_t ram_bits;
|
||||
uint64_t ram_size;
|
||||
uint32_t fixed_conf;
|
||||
|
||||
} AspeedSDMCState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue