Review Board 2.0.15


mem: Remove null-check bypassing in Packet::getPtr

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

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10563:3a541e8c1ff1
---------------------------
mem: Remove null-check bypassing in Packet::getPtr

This patch removes the parameter that enables bypassing the null check
in the Packet::getPtr method. A number of call sites assume the value
to be non-null.

The one odd case is the RubyTester, which issues zero-sized
prefetches(!), and despite being reads they had no valid data
pointer. This is now fixed, but the size oddity remains (unless anyone
object or has any good suggestions).

Finally, in the Ruby Sequencer, appropriate checks are made for flush
packets as they have no valid data pointer.

   
Review request changed
Updated (Dec. 2, 2014, 3:02 a.m.)

Status: Closed (submitted)