diff options
author | Helge Deller <deller@gmx.de> | 2024-01-18 18:14:43 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-18 18:14:43 +0100 |
commit | 2364bceda8e5e5d5ee85fd54d6b6a6106c747e35 (patch) | |
tree | 7554f1c9c8a3896d08a8b90ef87fd3d16ed07e78 /src | |
parent | d389c3155418d6d3c0e03fdef3b8602b18cc33bd (diff) | |
download | seabios-hppa-2364bceda8e5e5d5ee85fd54d6b6a6106c747e35.zip seabios-hppa-2364bceda8e5e5d5ee85fd54d6b6a6106c747e35.tar.gz seabios-hppa-2364bceda8e5e5d5ee85fd54d6b6a6106c747e35.tar.bz2 |
parisc: Optimize cache definition
Make sure loop values are not zero, otherwise loops may not finish.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/parisc/parisc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index bb867a0..b6fa505 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1604,17 +1604,17 @@ static int pdc_cache(unsigned long *arg) machine_cache_info->ic_size = 1024; /* no instruction cache */ machine_cache_info->dc_size = 1024; /* no data cache */ #elif 1 - machine_cache_info->dc_conf = (struct pdc_cache_cf) { 0 }; // .alias=1, .sh=3, }; - machine_cache_info->ic_conf = (struct pdc_cache_cf) { 0 }; // .alias=1, .sh=3, }; + machine_cache_info->dc_conf = (struct pdc_cache_cf) { .cc_line = 7, .cc_sh = 1, .cc_cst = 1 }; + machine_cache_info->ic_conf = (struct pdc_cache_cf) { .cc_line = 7, .cc_sh = 1, .cc_cst = 1 }; machine_cache_info->ic_size = 0; /* no instruction cache */ machine_cache_info->ic_count = 0; - machine_cache_info->ic_loop = 0; + machine_cache_info->ic_loop = -1; machine_cache_info->ic_base = 0; machine_cache_info->ic_stride = 0; machine_cache_info->dc_size = 0; /* no data cache */ machine_cache_info->dc_count = 0; - machine_cache_info->dc_loop = 0; + machine_cache_info->dc_loop = -1; machine_cache_info->dc_base = 0; machine_cache_info->dc_stride = 0; #endif |