From 4dee2a2527e29345c8b40689366614289e0e3b74 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 17 Aug 2016 21:51:28 -0600 Subject: [PATCH] UPSTREAM: qemu-riscv: Remove obsolete CSR - send_ipi This aligns the code in qemu-riscv with the code in spike-riscv. The previous code gives an error in the updated toolchain as the send_ipi CSR is no longer valid. This gave the build error: src/mainboard/emulation/qemu-riscv/qemu_util.c:64: Error: Instruction csrw requires absolute expression BUG=None BRANCH=None TEST=None Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/16244 Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich Reviewed-by: Jonathan Neuschfer Change-Id: Iac0f66e8e9935f45c8094d5e16bedb7ac5225424 Reviewed-on: https://chromium-review.googlesource.com/373242 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/mainboard/emulation/qemu-riscv/qemu_util.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/mainboard/emulation/qemu-riscv/qemu_util.c b/src/mainboard/emulation/qemu-riscv/qemu_util.c index 3c2941ce72..216eea95ff 100644 --- a/src/mainboard/emulation/qemu-riscv/qemu_util.c +++ b/src/mainboard/emulation/qemu-riscv/qemu_util.c @@ -56,14 +56,7 @@ uintptr_t mcall_query_memory(uintptr_t id, memory_block_info *p) uintptr_t mcall_send_ipi(uintptr_t recipient) { - //if (recipient >= num_harts) - //return -1; - - if (atomic_swap(&OTHER_HLS(recipient)->ipi_pending, 1) == 0) { - mb(); - write_csr(send_ipi, recipient); - } - + die("mcall_send_ipi is currently not implemented"); return 0; }