summaryrefslogtreecommitdiff
path: root/src/dev/arm
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/dev/arm
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/dev/arm')
-rw-r--r--src/dev/arm/gic_v3_redistributor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dev/arm/gic_v3_redistributor.cc b/src/dev/arm/gic_v3_redistributor.cc
index de6bd6389..37f169f19 100644
--- a/src/dev/arm/gic_v3_redistributor.cc
+++ b/src/dev/arm/gic_v3_redistributor.cc
@@ -815,11 +815,11 @@ Gicv3Redistributor::update()
uint8_t lpi_config_table[number_lpis];
memProxy->readBlob(lpiPendingTablePtr,
- (uint8_t *) lpi_pending_table,
+ lpi_pending_table,
sizeof(lpi_pending_table));
memProxy->readBlob(lpiConfigurationTablePtr,
- (uint8_t*) lpi_config_table,
+ lpi_config_table,
sizeof(lpi_config_table));
for (int lpi_id = SMALLEST_LPI_ID; lpi_id < largest_lpi_id;
@@ -869,7 +869,7 @@ Gicv3Redistributor::readEntryLPI(uint32_t lpi_id)
uint8_t lpi_pending_entry;
memProxy->readBlob(lpi_pending_entry_ptr,
- (uint8_t*) &lpi_pending_entry,
+ &lpi_pending_entry,
sizeof(lpi_pending_entry));
return lpi_pending_entry;
@@ -881,7 +881,7 @@ Gicv3Redistributor::writeEntryLPI(uint32_t lpi_id, uint8_t lpi_pending_entry)
Addr lpi_pending_entry_ptr = lpiPendingTablePtr + (lpi_id / 8);
memProxy->writeBlob(lpi_pending_entry_ptr,
- (uint8_t*) &lpi_pending_entry,
+ &lpi_pending_entry,
sizeof(lpi_pending_entry));
}