diff options
author | Heiko Stuebner <heiko.stuebner@vrull.eu> | 2022-12-24 01:13:23 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-12-29 17:59:43 +0300 |
commit | 33e41480b233eb3ae8e3b523062a1916693ac267 (patch) | |
tree | 60a0a12334f241551f8eb01b8fd3c341d4d63825 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bf0cc402d7cd4277ece55dd0ace6be43916f713b (diff) | |
download | linux-33e41480b233eb3ae8e3b523062a1916693ac267.tar.xz |
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 <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20221223221332.4127602-4-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions