From 8742dd4d883fa8d3447ea94d9b4648cc73014605 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 May 2021 18:59:37 +0100 Subject: [PATCH] moving stack and parameters higher up for media test --- media/audio/mp3/mp3_0.gpr | 10 +++++----- media/audio/mp3/mp3_0.sh | 6 +++--- src/openpower/simulator/qemu.py | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/media/audio/mp3/mp3_0.gpr b/media/audio/mp3/mp3_0.gpr index ae16168e..f76bcbcc 100644 --- a/media/audio/mp3/mp3_0.gpr +++ b/media/audio/mp3/mp3_0.gpr @@ -1,9 +1,9 @@ # void ff_mpadsp_apply_window_float(float *synth_buf, float *window, # int *dither_state, float *samples, # ptrdiff_t incr); -1: 0x800000 # stack pointer -3: 0x100000 # param 1: float *sunth_buf buf -4: 0x200000 # param 2: float *window win -5: 0x300000 # param 3: int *dither_state &unused -6: 0x400000 # param 3: float *samples out +1: 0x20800000 # stack pointer (high up in "RAM" to keep qemu happy) +3: 0x20100000 # param 1: float *sunth_buf buf +4: 0x20200000 # param 2: float *window win +5: 0x20300000 # param 3: int *dither_state &unused +6: 0x20400000 # param 3: float *samples out 7: 1 # param 5: ptr_diff_t incr 1 diff --git a/media/audio/mp3/mp3_0.sh b/media/audio/mp3/mp3_0.sh index 352483e2..a49af0c8 100755 --- a/media/audio/mp3/mp3_0.sh +++ b/media/audio/mp3/mp3_0.sh @@ -3,8 +3,8 @@ pypowersim -g audio/mp3/mp3_0.gpr \ -s common.spr \ -p 0x20000000 \ - -l data/audio/mp3/mp3_0_data/buf${1}:0x100000 \ - -l data/audio/mp3/mp3_0_data/win0:0x200000 \ - -d ${2}:0x400000:128 \ + -l data/audio/mp3/mp3_0_data/buf${1}:0x20100000 \ + -l data/audio/mp3/mp3_0_data/win0:0x20200000 \ + -d ${2}:0x20400000:128 \ -i audio/mp3/mp3_0_apply_window_float.bin cmp ${2} data/audio/mp3/mp3_0_data/samples${1} diff --git a/src/openpower/simulator/qemu.py b/src/openpower/simulator/qemu.py index 8b8bc22b..5ef5c36d 100644 --- a/src/openpower/simulator/qemu.py +++ b/src/openpower/simulator/qemu.py @@ -4,12 +4,12 @@ import subprocess launch_args_be = ['qemu-system-ppc64', '-machine', 'powernv9', '-nographic', - '-s', '-S'] + '-s', '-S', '-m', 'size=4096'] launch_args_le = ['qemu-system-ppc64le', '-machine', 'powernv9', '-nographic', - '-s', '-S'] + '-s', '-S', '-m', 'size=4096'] def swap_order(x, nbytes): -- 2.30.2