From 7f56d951fe4ad6749e68ac860ea05f572b6d04ed Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Sat, 7 Sep 2024 10:20:52 -0700 Subject: Allow compiling ancestor at half of max address Also makes code compatible with older versions of GCC. --- src/arch/salis-v1.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/salis-v1.c b/src/arch/salis-v1.c index 0e8f202..9268d50 100644 --- a/src/arch/salis-v1.c +++ b/src/arch/salis-v1.c @@ -200,7 +200,15 @@ void arch_on_proc_kill(Core *core) { void arch_anc_init(Core *core, u64 size) { assert(core); - proc_fetch(core, 0)->mb0s = size; + Proc *panc = proc_fetch(core, 0); + +#if ANC_HALF == 1 + panc->mb0a = U64_HALF; + panc->ip = U64_HALF; + panc->sp = U64_HALF; +#endif + + panc->mb0s = size; } #endif -- cgit v1.2.1