On 10/3/26 23:31, Yodel Eldar wrote:
Currently, the board (Clipper/DP264) passes machine->ram to the
chipset (Typhoon) as an arg to typhoon_init(), where it is
added as a subregion of system memory. This commit, instead adds
a ram pointer in TyphoonState, defines it as a Property, and sets
a link to it from the machine, thus removing the ram parameter.

Note: Moving the ram subregion mapping into machine code was
considered but decided against so as to preserve the Typhoon's
historical role in mapping the address space.

Signed-off-by: Yodel Eldar <[email protected]>
---
  hw/alpha/alpha_sys.h |  5 +++--
  hw/alpha/dp264.c     |  8 +++++---
  hw/alpha/typhoon.c   | 14 +++++++++++---
  3 files changed, 19 insertions(+), 8 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to