From 11fc132669217ea9cc66c870788e2dbd9cf563d5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 28 Nov 2019 00:05:09 -0800 Subject: [PATCH] power: Convert POWER specific syscalls to Guest ABI. Jira Issue: https://gem5.atlassian.net/browse/GEM5-187 Change-Id: Icdf41a0e2bf910813250249eff7a9f1b54c60b22 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23204 Reviewed-by: Bobby R. Bruce Maintainer: Gabe Black Tested-by: kokoro --- src/arch/power/linux/process.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/arch/power/linux/process.cc b/src/arch/power/linux/process.cc index 16685817a..9f16e85c7 100644 --- a/src/arch/power/linux/process.cc +++ b/src/arch/power/linux/process.cc @@ -76,11 +76,10 @@ PowerLinuxObjectFileLoader loader; /// Target uname() handler. static SyscallReturn -unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) +unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc, Addr utsname) { - int index = 0; auto process = tc->getProcessPtr(); - TypedBufferArg name(process->getSyscallArg(tc, index)); + TypedBufferArg name(utsname); strcpy(name->sysname, "Linux"); strcpy(name->nodename, "sim.gem5.org"); -- 2.30.2