Review Board 2.0.15


config: Remove O3 dependencies

Review Request #1608 - Created Jan. 7, 2013 and submitted

Information
Ali Saidi
gem5
default
Reviewers
Default
Changeset 9457:fd01ef3f4a58
---------------------------
config: Remove O3 dependencies

The default cache configuration script currently import the O3_ARM_v7a
model configuration, which depends on the O3 CPU. This breaks if gem5
has been compiled without O3 support. This changeset removes the
dependency by only importing the model if it is requested by the
user. As a bonus, it actually removes some code duplication in the
configuration scripts.

   
Review request changed
Updated (Feb. 15, 2013, 6:47 a.m.)

Status: Closed (submitted)

Posted (July 28, 2015, 3:42 p.m.)



  
configs/common/CacheConfig.py (Diff revision 1)
 
 

Sorry to dredge this up, but I've seen a warning a couple of times that is caused by this line due to this import inside the middle of this function.

"SyntaxWarning: import * only allowed at module level"

I found the following reference which suggests that it should not be possible to do what this code is trying to do.

https://docs.python.org/2/whatsnew/2.1.html#pep-227-nested-scopes

Is it possible to do this in a different way to get rid of the warning (and make this code work in general)?