Review Board 2.0.15


mem: Use const pointers for port proxy write functions

Review Request #2492 - Created Nov. 16, 2014 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10542:6cbdd036f4b9
---------------------------
mem: Use const pointers for port proxy write functions

This patch changes the various write functions in the port proxies
to use const pointers for all sources (similar to how memcpy works).

The one unfortunate aspect is the need for a const_cast in the packet,
to avoid having to juggle a const and a non-const data pointer. This
design decision can always be re-evaluated at a later stage.

   

Issue Summary

1 0 0 1
Description From Last Updated Status
Review request changed
Updated (Dec. 2, 2014, 3:03 a.m.)

Status: Closed (submitted)