[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v3 1/4] prep: do not use global variable to access nvr
From: |
Hervé Poussineau |
Subject: |
[Qemu-ppc] [PATCH v3 1/4] prep: do not use global variable to access nvram |
Date: |
Sat, 7 Jan 2017 16:23:40 +0100 |
Signed-off-by: Hervé Poussineau <address@hidden>
---
hw/ppc/prep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index 054af1e..9fb89d3 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -339,13 +339,13 @@ static PortioList prep_port_list;
/* NVRAM helpers */
static inline uint32_t nvram_read(Nvram *nvram, uint32_t addr)
{
- NvramClass *k = NVRAM_GET_CLASS(sysctrl->nvram);
+ NvramClass *k = NVRAM_GET_CLASS(nvram);
return (k->read)(nvram, addr);
}
static inline void nvram_write(Nvram *nvram, uint32_t addr, uint32_t val)
{
- NvramClass *k = NVRAM_GET_CLASS(sysctrl->nvram);
+ NvramClass *k = NVRAM_GET_CLASS(nvram);
(k->write)(nvram, addr, val);
}
--
2.1.4
- [Qemu-ppc] [PATCH v3 0/4] ppc: add a IBM 40p machine (RS/6000, PReP), Hervé Poussineau, 2017/01/07
- [Qemu-ppc] [PATCH v3 1/4] prep: do not use global variable to access nvram,
Hervé Poussineau <=
- [Qemu-ppc] [PATCH v3 3/4] prep: add IBM RS/6000 7020 (40p) memory controller, Hervé Poussineau, 2017/01/07
- [Qemu-ppc] [PATCH v3 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation, Hervé Poussineau, 2017/01/07
- [Qemu-ppc] [PATCH v3 2/4] prep: add PReP System I/O, Hervé Poussineau, 2017/01/07
- Re: [Qemu-ppc] [PATCH v3 0/4] ppc: add a IBM 40p machine (RS/6000, PReP), David Gibson, 2017/01/08
- Re: [Qemu-ppc] [PATCH v3 0/4] ppc: add a IBM 40p machine (RS/6000, PReP), Thomas Huth, 2017/01/09