summaryrefslogtreecommitdiff
path: root/src/arch/power
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-05-01 20:14:13 -0700
committerGabe Black <gabeblack@google.com>2019-05-29 04:23:46 +0000
commit8666440499ef5b175b16efcf9d3a53f0583f0c45 (patch)
tree8fa4310dcd56908d5c8efbca3854c7444770c8e7 /src/arch/power
parentd7c4cad240fd4f378d7362da5e9e44b9f0dd80d3 (diff)
downloadgem5-8666440499ef5b175b16efcf9d3a53f0583f0c45.tar.xz
arch, base, dev, sim: Remove now unnecessary casts from PortProxy methods.
Change-Id: Ia73b2d86a10d02fa09c924a4571477bb5f200eb7 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18572 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/power')
-rw-r--r--src/arch/power/process.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/power/process.cc b/src/arch/power/process.cc
index 1d082c77e..6362027de 100644
--- a/src/arch/power/process.cc
+++ b/src/arch/power/process.cc
@@ -233,8 +233,7 @@ PowerProcess::argsInit(int intSize, int pageSize)
//Write out the sentry void *
uint32_t sentry_NULL = 0;
- initVirtMem.writeBlob(sentry_base,
- (uint8_t*)&sentry_NULL, sentry_size);
+ initVirtMem.writeBlob(sentry_base, &sentry_NULL, sentry_size);
//Fix up the aux vectors which point to other data
for (int i = auxv.size() - 1; i >= 0; i--) {
@@ -261,7 +260,7 @@ PowerProcess::argsInit(int intSize, int pageSize)
copyStringArray(envp, envp_array_base, env_data_base, initVirtMem);
copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem);
- initVirtMem.writeBlob(argc_base, (uint8_t*)&guestArgc, intSize);
+ initVirtMem.writeBlob(argc_base, &guestArgc, intSize);
ThreadContext *tc = system->getThreadContext(contextIds[0]);