summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2018-02-26 21:58:13 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2018-05-16 17:20:27 +0000
commit49f96e7b77925837aa5bc84d4c3453ab5f07408e (patch)
tree15a6c77aafd1926c30b66c9034cb6b593c77b410
parent23c6e60409a580e53834f90c1de1438a8ac94e88 (diff)
downloadgem5-49f96e7b77925837aa5bc84d4c3453ab5f07408e.tar.xz
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 <steve.capper@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/10022 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
-rw-r--r--src/arch/arm/semihosting.cc2
1 files changed, 1 insertions, 1 deletions
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<uint32_t, ArmSemihosting::SemiCall> 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.