diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2020-05-04 04:30:45 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2020-05-17 14:52:25 -0700 |
commit | 2cc2278edf0403720397a33b0747e0aba9e6d420 (patch) | |
tree | 1fa27a20ae75e64fbeb90e124c85de599f16cf7e /target/xtensa/cpu.h | |
parent | 59afd43daedabe672c289326a5f268f737d35252 (diff) |
target/xtensa: fetch HW version from configuration overlay
Xtensa architecture has features which behavior depends on hardware
version. Provide hardware version information to translators: add
XtensaConfig::hw_version and use XCHAL_HW_VERSION from configuration
overlay to initialize it.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/cpu.h')
-rw-r--r-- | target/xtensa/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 7a46dccbe1..32749378bf 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -464,6 +464,7 @@ struct XtensaConfig { XtensaMemory sysrom; XtensaMemory sysram; + unsigned hw_version; uint32_t configid[2]; void *isa_internal; |