From 5d7cdd2c6754c61319fe5bff5260ac2bf2f25b22 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 16 Jun 2018 08:35:36 +0200 Subject: [PATCH] Fix a setcr0 bug which was trashing the condition register; some system calls are now implemented. A few tests more-or-less pass (but crash on exit). --- plat/linuxppc/emu/emu.c | 8 +++++-- plat/linuxppc/emu/main.c | 45 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/plat/linuxppc/emu/emu.c b/plat/linuxppc/emu/emu.c index 31bb7f1b7..29404390c 100644 --- a/plat/linuxppc/emu/emu.c +++ b/plat/linuxppc/emu/emu.c @@ -58,7 +58,7 @@ static bool getcr(uint8_t bit) static void setcr(uint8_t bit, bool value) { bit = 31 - bit; /* note PowerPC bit numbering */ - cpu.cr = cpu.cr & (1<