Sandipan Das has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16646
Change subject: arch-power: Update hello test program
......................................................................
arch-power: Update hello test program
This updates the hello test program binary to an equivalent
64-bit little endian executable. Since this binary is built
with a recent toolchain, the kernel version provided by the
uname system call is ramped up to be able to meet the minimum
version required by glibc. This binary also uses the readlink
system call and the Move From Time Base (mftb) instruction.
So, placeholder code is added for these.
Change-Id: I645b344e8582f938711b75488bd25899c374cca3
Signed-off-by: Sandipan Das <[email protected]>
---
M src/arch/power/isa/decoder.isa
M src/arch/power/linux/process.cc
M tests/test-progs/hello/bin/power/linux/hello
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/arch/power/isa/decoder.isa b/src/arch/power/isa/decoder.isa
index db5cc46..9945ba4 100644
--- a/src/arch/power/isa/decoder.isa
+++ b/src/arch/power/isa/decoder.isa
@@ -724,6 +724,11 @@
0x100: mflr({{ Rt = LR; }});
0x120: mfctr({{ Rt = CTR; }});
0x1f9: mftar({{ Rt = TAR; }});
+ 0x188: mftb({{
+ // This instruction has been phased out but some
+ // compilers still choose to generate it
+ Rt = 0;
+ }});
}
467: decode SPR {
0x20: mtxer({{ XER = Rs; }});
diff --git a/src/arch/power/linux/process.cc
b/src/arch/power/linux/process.cc
index 664b93b..46f8ead 100644
--- a/src/arch/power/linux/process.cc
+++ b/src/arch/power/linux/process.cc
@@ -57,7 +57,7 @@
strcpy(name->sysname, "Linux");
strcpy(name->nodename, "sim.gem5.org");
- strcpy(name->release, "3.0.0");
+ strcpy(name->release, "4.0.0");
strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
strcpy(name->machine, "power");
@@ -151,7 +151,7 @@
/* 82 */ SyscallDesc("reserved#82", unimplementedFunc),
/* 83 */ SyscallDesc("symlink", unimplementedFunc),
/* 84 */ SyscallDesc("unused#84", unimplementedFunc),
- /* 85 */ SyscallDesc("readlink", unimplementedFunc),
+ /* 85 */ SyscallDesc("readlink", readlinkFunc),
/* 86 */ SyscallDesc("uselib", unimplementedFunc),
/* 87 */ SyscallDesc("swapon", gethostnameFunc),
/* 88 */ SyscallDesc("reboot", unimplementedFunc),
diff --git a/tests/test-progs/hello/bin/power/linux/hello
b/tests/test-progs/hello/bin/power/linux/hello
index 6619ae3..8ab68ac 100755
--- a/tests/test-progs/hello/bin/power/linux/hello
+++ b/tests/test-progs/hello/bin/power/linux/hello
Binary files differ
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16646
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I645b344e8582f938711b75488bd25899c374cca3
Gerrit-Change-Number: 16646
Gerrit-PatchSet: 1
Gerrit-Owner: Sandipan Das <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev