From: Gabe Black Date: Fri, 27 Mar 2020 11:01:38 +0000 (-0700) Subject: riscv: Fix RISCV builds by updating its use of pseudoInst(). X-Git-Tag: v20.0.0.0~241 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4697687ed722768b527d20ed1efd2297a7df273;p=gem5.git riscv: Fix RISCV builds by updating its use of pseudoInst(). The signature of the function and RISCV's use of it changed simultaneously, were independently verified, and then separately merged. The combination of the two does not build successfully. This change updates RISCV so it uses the new signature. Change-Id: I6a944e664640c9086583d546870ed1fbfa84a3e7 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27163 Reviewed-by: Giacomo Travaglini Reviewed-by: Nils Asmussen Maintainer: Gabe Black Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com> Tested-by: kokoro --- diff --git a/src/arch/riscv/isa/formats/m5ops.isa b/src/arch/riscv/isa/formats/m5ops.isa index 2a16959c9..11834f67b 100644 --- a/src/arch/riscv/isa/formats/m5ops.isa +++ b/src/arch/riscv/isa/formats/m5ops.isa @@ -37,8 +37,10 @@ def format M5Op() {{ iop = InstObjParams(name, Name, 'PseudoOp', - 'a0 = PseudoInst::pseudoInst(' - + 'xc->tcBase(), M5FUNC)', + 'uint64_t result;\n' + 'PseudoInst::pseudoInst(' + 'xc->tcBase(), M5FUNC, result);\n' + 'a0 = result', ['IsNonSpeculative', 'IsSerializeAfter']) header_output = BasicDeclare.subst(iop) decoder_output = BasicConstructor.subst(iop)