diff options
author | Gabe Black <gabeblack@google.com> | 2019-05-01 20:14:13 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-05-29 04:23:46 +0000 |
commit | 8666440499ef5b175b16efcf9d3a53f0583f0c45 (patch) | |
tree | 8fa4310dcd56908d5c8efbca3854c7444770c8e7 /src/arch/generic/linux | |
parent | d7c4cad240fd4f378d7362da5e9e44b9f0dd80d3 (diff) | |
download | gem5-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/generic/linux')
-rw-r--r-- | src/arch/generic/linux/threadinfo.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/generic/linux/threadinfo.hh b/src/arch/generic/linux/threadinfo.hh index 89db36a30..1595da499 100644 --- a/src/arch/generic/linux/threadinfo.hh +++ b/src/arch/generic/linux/threadinfo.hh @@ -87,7 +87,7 @@ class ThreadInfo addr = tc->readMiscRegNoEffect(TheISA::CurThreadInfoReg); PortProxy &p = tc->getPhysProxy(); - p.readBlob(addr, (uint8_t *)&sp, sizeof(Addr)); + p.readBlob(addr, &sp, sizeof(Addr)); return sp & ~ULL(0x3fff); } |