Commit a3210e056d for qemu.org
commit a3210e056d42491c96dbe58d7ffe357d8c9cb51f
Author: Helge Deller <deller@gmx.de>
Date: Sun Mar 29 00:12:09 2026 +0100
hw/pci-host/astro: Make astro address arrays accessible for other users
Move the tables out of astro_realize(). This is needed because follow-up
patches will need those tables.
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c
index 6cc0b35070..46d8530538 100644
--- a/hw/pci-host/astro.c
+++ b/hw/pci-host/astro.c
@@ -37,6 +37,11 @@
#include "qom/object.h"
#include "exec/target_page.h"
+static const int elroy_hpa_offsets[ELROY_NUM] = {
+ 0x30000, 0x32000, 0x38000, 0x3c000 };
+static const char elroy_rope_nr[ELROY_NUM] = {
+ 0, 1, 4, 6 }; /* busnum path, e.g. [10:6] */
+
/*
* Helper functions
*/
@@ -843,10 +848,6 @@ static void astro_realize(DeviceState *obj, Error **errp)
/* Create Elroys (PCI host bus chips). */
for (i = 0; i < ELROY_NUM; i++) {
- static const int elroy_hpa_offsets[ELROY_NUM] = {
- 0x30000, 0x32000, 0x38000, 0x3c000 };
- static const char elroy_rope_nr[ELROY_NUM] = {
- 0, 1, 4, 6 }; /* busnum path, e.g. [10:6] */
int addr_offset;
ElroyState *elroy;
hwaddr map_addr;