diff options
author | Helge Deller <deller@gmx.de> | 2024-01-18 18:16:32 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-18 18:16:32 +0100 |
commit | 5a3996bfb06f5d94ee11e6d9e897500c6c40f3cc (patch) | |
tree | 39c4b2c504c3b4a90e848d2f227a5acf27b23dd2 | |
parent | 2364bceda8e5e5d5ee85fd54d6b6a6106c747e35 (diff) | |
download | seabios-hppa-5a3996bfb06f5d94ee11e6d9e897500c6c40f3cc.zip seabios-hppa-5a3996bfb06f5d94ee11e6d9e897500c6c40f3cc.tar.gz seabios-hppa-5a3996bfb06f5d94ee11e6d9e897500c6c40f3cc.tar.bz2 |
parisc: Mark machine 64-bit capable if 64-bit CPU is found
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/parisc/parisc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index b6fa505..34f4039 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1950,7 +1950,7 @@ static int pdc_psw(unsigned long *arg) unsigned long *result = (unsigned long *)ARG2; unsigned long mask; - if (cpu_bit_width == 64 /* && !firmware_width_locked */) + if (is_64bit_CPU() /* && !firmware_width_locked*/) mask = PDC_PSW_WIDE_BIT | PDC_PSW_ENDIAN_BIT; else mask = PDC_PSW_ENDIAN_BIT; @@ -1967,6 +1967,9 @@ static int pdc_psw(unsigned long *arg) BUG_ON((psw_defaults & PDC_PSW_ENDIAN_BIT) == 1); /* tell qemu the default mask */ mtctl(psw_defaults, CR_PSW_DEFAULT); + /* let model know that we support 64-bit */ + current_machine->pdc_model.width = (psw_defaults & PDC_PSW_WIDE_BIT) ? 1 : 0; + NO_COMPAT_RETURN_VALUE(ARG2); } return PDC_OK; } |