OSDN Git Service

target/openrisc: Remove duplicate features property
authorStafford Horne <shorne@gmail.com>
Fri, 21 Apr 2017 15:28:55 +0000 (00:28 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 4 May 2017 00:39:14 +0000 (09:39 +0900)
commit48a1b62baaf45e4d8d5ffac77647f7e898d7f7f1
tree6cf8192766c87b6cdf623f6b38cdff207c9902b0
parentacf57591c01cd0b1667e4f0ed2176d59cb5827aa
target/openrisc: Remove duplicate features property

The features property has stored the exact same thing as the cpucfgr
spr. Remove the feature enum and property as it is not needed.

In order to preserve the behavior or keeping features accross reset this
patch moves cpucfgr into the non reset region of the state struct.  Since
the cpucfgr is read only this means we only need to sset cpucfgr once
during class init.

Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/cpu.c
target/openrisc/cpu.h