From 49f96e7b77925837aa5bc84d4c3453ab5f07408e Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 26 Feb 2018 21:58:13 +0000 Subject: [PATCH] arch-arm: Fix semihosting arg count for SYS_GET_CMDLINE SYS_GET_CMDLINE was declared as having 1 parameter when it is really supposed to have two parameters. Change-Id: Ia364abb4b34834f4d5e598b5adee9585e0815ac8 Reported-by: Steve Capper Signed-off-by: Andreas Sandberg Reviewed-by: Jack Travaglini Reviewed-on: https://gem5-review.googlesource.com/10022 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- src/arch/arm/semihosting.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/arm/semihosting.cc b/src/arch/arm/semihosting.cc index 46d964d63..51107cbf7 100644 --- a/src/arch/arm/semihosting.cc +++ b/src/arch/arm/semihosting.cc @@ -76,7 +76,7 @@ const std::map ArmSemihosting::calls{ { 0x11, { "SYS_TIME", &ArmSemihosting::callTime, 0, 0} }, { 0x12, { "SYS_SYSTEM", &ArmSemihosting::callSystem, 2, 2} }, { 0x13, { "SYS_ERRNO", &ArmSemihosting::callErrno, 0, 0 } }, - { 0x15, { "SYS_GET_CMDLINE", &ArmSemihosting::callGetCmdLine, 1, 1} }, + { 0x15, { "SYS_GET_CMDLINE", &ArmSemihosting::callGetCmdLine, 2, 2} }, { 0x16, { "SYS_HEAPINFO", &ArmSemihosting::callHeapInfo, 1, 1} }, // Exit is special and requires custom handling in aarch32. -- 2.30.2