]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/pnv: Make HOMER memory a RAM region
authorNicholas Piggin <npiggin@gmail.com>
Sat, 16 Nov 2024 14:29:13 +0000 (00:29 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:30 +0000 (22:43 +1000)
commit70bc5c2498f464b63515984f1996031010476c25
treeeaf7f41f80bdd048ff7988ec8e272a8f4218794d
parent84c085342f1e98bd2b277654209b6ff5ce5d2f0e
ppc/pnv: Make HOMER memory a RAM region

The HOMER is a region of memory used by host and firmware and
microconrollers. It has very little logic by itself, just some BAR
registers. Users of this memory should operate on it rather than
have HOMER implement them with MMIO registers, which is not the
right model.

This change switches the implementation of HOMER from MMIO to RAM,
and moves the OCC register implementation to in-memory structure
accesses performed by the OCC model.

This has the downside that access to unimplemented regions of HOMER
are no longer flagged. Perhaps that could be done by adding a memory
region for HOMER, and ram subregions under that for each implemented
part. But for now this takes the simpler approach.

Note: This brings some data structure definitions from skiboot, which
does not match QEMU coding style but is not changed to make comparisons
and updates simpler.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c
hw/ppc/pnv_homer.c
hw/ppc/pnv_occ.c
include/hw/ppc/pnv_homer.h
include/hw/ppc/pnv_occ.h
roms/SLOF