Power: Change bitfield name to avoid conflicts with range_map
Review Request #1109 - Created March 21, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Power: Change bitfield name to avoid conflicts with range_map This patch changes the name of a bitfield from W to W_FIELD to avoid clashes with W being used as a class (typename) in the templatized range_map. It also changes L to L_FIELD to avoid future problems. The problem manifestes itself when the CPU includes a header that in turn includes range_map.hh. The relevant parts of the decoder are updated.
util/regress all passing (disregarding t1000 and eio)
looks fine to me, maybe change L at the same time? Ali
Posted (March 21, 2012, 3:30 p.m.)
I'm curious how this issue arises in practice... wouldn't the scope of the templated range_map methods be disjoint from where this code would appear? I guess if it's a real issue with g++ 4.6 we need to fix it, but I'd like to understand better whether it's a true C++ error or just a g++ idiosyncrasy.
Review request changed
Updated (March 21, 2012, 7 p.m.)
Description: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+8 -5) |
Thanks for digging in to the explanation... this makes sense. Surprised we didn't run into it sooner.
