diff options
author | Heiko Stuebner <[email protected]> | 2022-12-23 23:13:23 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2022-12-29 06:59:43 -0800 |
commit | 33e41480b233eb3ae8e3b523062a1916693ac267 (patch) | |
tree | 60a0a12334f241551f8eb01b8fd3c341d4d63825 /scripts/generate_rust_analyzer.py | |
parent | bf0cc402d7cd4277ece55dd0ace6be43916f713b (diff) |
RISC-V: detach funct-values from their offset
Rather than defining funct3, funct4, etc values pre-shifted to their
target-position in an instruction, define the values themselves and
only shift them where needed.
This allows using these funct-values in other places as well, for example
when decoding functions.
At the same time also reduces the use of magic numbers, one would need
a spec manual to understand.
Reviewed-by: Conor Dooley <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions