diff options
author | Helge Deller <deller@gmx.de> | 2023-10-22 11:54:54 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-31 08:26:22 +0100 |
commit | 358bef45aa5a92c34435a1e967b2991aef894834 (patch) | |
tree | 0da3215c75df0a0a73e7275081c65cbee2012dc3 | |
parent | deeece4c964d1d927e1c8af6185444c3e6667494 (diff) | |
download | seabios-hppa-358bef45aa5a92c34435a1e967b2991aef894834.zip seabios-hppa-358bef45aa5a92c34435a1e967b2991aef894834.tar.gz seabios-hppa-358bef45aa5a92c34435a1e967b2991aef894834.tar.bz2 |
parisc: Add default PSW bit setting to pdc_model struct
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/parisc/parisc.c | 6 | ||||
-rw-r--r-- | src/parisc/pdc.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 86a28af..2104b8f 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -2719,7 +2719,11 @@ void __VISIBLE start_parisc_firmware(void) cpu_bit_width = (i == 63) ? 64 : 32; psw_defaults = PDC_PSW_ENDIAN_BIT; - /* if (cpu_bit_width == 64) psw_defaults |= PDC_PSW_WIDE_BIT; */ + if (0 && cpu_bit_width == 64) { + /* enable 64-bit PSW by default */ + psw_defaults |= PDC_PSW_WIDE_BIT; + current_machine->pdc_model.width = 1; + } mtctl(psw_defaults, CR_PSW_DEFAULT); if (smp_cpus > HPPA_MAX_CPUS) diff --git a/src/parisc/pdc.h b/src/parisc/pdc.h index 3c723a6..32c772d 100644 --- a/src/parisc/pdc.h +++ b/src/parisc/pdc.h @@ -472,6 +472,7 @@ struct pdc_model { /* for PDC_MODEL */ unsigned long arch_rev; unsigned long pot_key; unsigned long curr_key; + unsigned long width; /* default of PSW_W bit (1=enabled) */ }; struct pdc_cache_cf { /* for PDC_CACHE (I/D-caches) */ |