summary refs log tree commit diff stats
path: root/tests/tcg/hexagon/overflow.c
diff options
context:
space:
mode:
authorMatheus Tavares Bernardino <quic_mathbern@quicinc.com>2023-05-24 11:41:47 -0300
committerTaylor Simpson <tsimpson@quicinc.com>2023-05-26 07:03:41 -0700
commit3608c2419c95e7477dd282bb1268c78029501df8 (patch)
tree2be305676d555be086a17cc3a821534fd2704775 /tests/tcg/hexagon/overflow.c
parent3fd49e22171a019beebffdda081380a5276525a6 (diff)
downloadfocaccia-qemu-3608c2419c95e7477dd282bb1268c78029501df8.tar.gz
focaccia-qemu-3608c2419c95e7477dd282bb1268c78029501df8.zip
target/hexagon/*.py: clean up used 'toss' and 'numregs' vars
Many Hexagon python scripts call hex_common.get_tagregs(), but only one
call site use the full reg structure given by this function. To make the
code cleaner, let's make get_tagregs() filter out the unused fields
(i.e. 'toss' and 'numregs'), properly removed the unused variables at
the call sites. The hex_common.bad_register() function is also adjusted
to work exclusively with 'regtype' and 'regid' args. For the single call
site that does use toss/numregs, we provide an optional parameter to
get_tagregs() which will restore the old full behavior.

Suggested-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Tested-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <3ffd4ccb972879f57f499705c624e8eaba7f8b52.1684939078.git.quic_mathbern@quicinc.com>
Diffstat (limited to 'tests/tcg/hexagon/overflow.c')
0 files changed, 0 insertions, 0 deletions