diff options
author | 2022-12-23 23:13:23 +0100 | |
---|---|---|
committer | 2022-12-29 06:59:43 -0800 | |
commit | 33e41480b233eb3ae8e3b523062a1916693ac267 (patch) | |
tree | 60a0a12334f241551f8eb01b8fd3c341d4d63825 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | RISC-V: add prefix to all constants/macros in parse_asm.h (diff) | |
download | wireguard-linux-33e41480b233eb3ae8e3b523062a1916693ac267.tar.xz wireguard-linux-33e41480b233eb3ae8e3b523062a1916693ac267.zip |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions