diff options
author | Helge Deller <deller@gmx.de> | 2023-10-22 11:51:06 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-22 11:56:11 +0200 |
commit | fd5c68b8d6c7f121d158534404e8d26ecfc2e3dd (patch) | |
tree | 3610f6a77bdf12871eda883d5dd65e23c2b79ce2 | |
parent | f366bd4ba4c45b7fa4292af8b78f6d041b0d74e8 (diff) | |
download | seabios-hppa-fd5c68b8d6c7f121d158534404e8d26ecfc2e3dd.zip seabios-hppa-fd5c68b8d6c7f121d158534404e8d26ecfc2e3dd.tar.gz seabios-hppa-fd5c68b8d6c7f121d158534404e8d26ecfc2e3dd.tar.bz2 |
parisc: Store user-specified sw_id in pdc_model field
If user gives a sw_id, use it for all emulated CPUs.
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/parisc/parisc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 5b9b56b..86a28af 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -2800,6 +2800,8 @@ void __VISIBLE start_parisc_firmware(void) current_machine->pdc_model.sw_id = romfile_loadstring_to_int("opt/hostid", current_machine->pdc_model.sw_id); + /* and store in 32-bit machine too */ + machine_B160L.pdc_model.sw_id = current_machine->pdc_model.sw_id; dprintf(0, "fw_cfg: machine hostid %lu\n", current_machine->pdc_model.sw_id); str = romfile_loadfile("/etc/qemu-version", NULL); |