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/x86/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/x86/linux')
-rw-r--r-- | src/arch/x86/linux/system.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/linux/system.cc b/src/arch/x86/linux/system.cc index fc5bc2d25..04ab023b8 100644 --- a/src/arch/x86/linux/system.cc +++ b/src/arch/x86/linux/system.cc @@ -80,14 +80,14 @@ LinuxX86System::initState() if (commandLine.length() + 1 > realModeData - commandLineBuff) panic("Command line \"%s\" is longer than %d characters.\n", commandLine, realModeData - commandLineBuff - 1); - physProxy.writeBlob(commandLineBuff, (uint8_t *)commandLine.c_str(), + physProxy.writeBlob(commandLineBuff, commandLine.c_str(), commandLine.length() + 1); // Generate a pointer of the right size and endianness to put into // commandLinePointer. uint32_t guestCommandLineBuff = X86ISA::htog((uint32_t)commandLineBuff); - physProxy.writeBlob(commandLinePointer, (uint8_t *)&guestCommandLineBuff, + physProxy.writeBlob(commandLinePointer, &guestCommandLineBuff, sizeof(guestCommandLineBuff)); /* |