diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-07-03 10:14:36 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-07-03 10:14:36 -0400 |
commit | aa5bbe81f6fd18d824608d48a5adf74ea2c5b51d (patch) | |
tree | ffe18672e0e6bee889ef488d4f29d0488bf37506 /src/unittest | |
parent | 359904194d42daa5db6d46403d57256dee69d121 (diff) | |
download | gem5-aa5bbe81f6fd18d824608d48a5adf74ea2c5b51d.tar.xz |
mem: Convert Request static const flags to enums
This patch fixes an issue which is very wide spread in the codebase,
causing sporadic linking failures. The issue is that we declare static
const class variables in the header, without any definition (as part
of a source file). In most cases the compiler propagates the value and
we have no issues. However, especially for less optimising builds such
as debug, we get sporadic linking failures due to undefined
references.
This patch fixes the Request class, by turning the static const flags
and master IDs into C++11 typed enums.
Diffstat (limited to 'src/unittest')
0 files changed, 0 insertions, 0 deletions