arch-arm: Fix inconsistency in variable name
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 23 Apr 2020 18:46:32 +0000 (19:46 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 30 Apr 2020 09:14:42 +0000 (09:14 +0000)
Change-Id: I091a2d0cc8bfa7b8d98c4f508d175868d0fd7249
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28172
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/freebsd/process.cc

index 3955f85dfac890463efb7625f8512dcf23ab4915..d8a7d6836e1370e0ff4aeff34e470a42bc78569c 100644 (file)
@@ -118,7 +118,7 @@ sysctlFunc(SyscallDesc *desc, ThreadContext *tc, Addr namep, size_t nameLen,
     void *holdp = (void *)buf2.bufferPtr();
     size_t *holdlenp = (size_t *)buf3.bufferPtr();
 
-    ret = sysctl((int *)hnamep, namelen, holdp, holdlenp, hnewp, newlen);
+    ret = sysctl((int *)hnamep, nameLen, holdp, holdlenp, hnewp, newlen);
 
     buf.copyOut(tc->getVirtProxy());
     buf2.copyOut(tc->getVirtProxy());