diff options
author | Helge Deller <deller@gmx.de> | 2023-10-22 11:57:41 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-22 11:57:41 +0200 |
commit | 2dcfdab01a5dd193fe127eda359629e8656cc3e8 (patch) | |
tree | 70a6ffd6acd1c7da1daec209e6d0f557265ae8b1 | |
parent | d751aca537d4c90861a80021c33cbcf6e7a2540f (diff) | |
download | seabios-hppa-2dcfdab01a5dd193fe127eda359629e8656cc3e8.zip seabios-hppa-2dcfdab01a5dd193fe127eda359629e8656cc3e8.tar.gz seabios-hppa-2dcfdab01a5dd193fe127eda359629e8656cc3e8.tar.bz2 |
parisc: initialize result of pdc_model call prior return
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/parisc/parisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 2104b8f..10cf5ac 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1334,6 +1334,7 @@ static int pdc_model(unsigned int *arg) * with old qemu versions which will try to run 64-bit instructions * kernel sr_disable_hash() function */ + memset(result, 0, 32 * sizeof(unsigned long)); memcpy(result, (cpu_bit_width == 64) ? ¤t_machine->pdc_model : &machine_B160L.pdc_model, sizeof(current_machine->pdc_model)); |