projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c6e60
)
arch-arm: Fix semihosting arg count for SYS_GET_CMDLINE
author
Andreas Sandberg
<andreas.sandberg@arm.com>
Mon, 26 Feb 2018 21:58:13 +0000
(21:58 +0000)
committer
Andreas Sandberg
<andreas.sandberg@arm.com>
Wed, 16 May 2018 17:20:27 +0000
(17:20 +0000)
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>
src/arch/arm/semihosting.cc
patch
|
blob
|
history
diff --git
a/src/arch/arm/semihosting.cc
b/src/arch/arm/semihosting.cc
index 46d964d63c32b18a4fe488afe99059505432fe44..51107cbf77b9ca232fbe3f29098d3092b9e7f338 100644
(file)
--- 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.