From 8666440499ef5b175b16efcf9d3a53f0583f0c45 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 1 May 2019 20:14:13 -0700 Subject: 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 Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/arch/x86/linux/system.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/x86/linux') 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)); /* -- cgit v1.2.3