aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv8.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2023-04-09 01:00:15 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2023-05-06 13:34:32 +0000
commit329b10754aa2294d11717c461f356c174eba5094 (patch)
treea1b2b0b1eea8ecd3dc271d9d903d8dd9ab374954 /src/target/armv8.c
parent92c1bee18c8268511de3478aabd226ce4f92322a (diff)
downloadriscv-openocd-329b10754aa2294d11717c461f356c174eba5094.zip
riscv-openocd-329b10754aa2294d11717c461f356c174eba5094.tar.gz
riscv-openocd-329b10754aa2294d11717c461f356c174eba5094.tar.bz2
target: etm: fix check trace status
Current code tests a function pointer against a numeric value that is the same enum type as returned by the pointed function. Clearly the author was willing to call the function and check its returned value. Fix the check by calling the function. Detected through 'sparse' tool. Change-Id: I27d18d26c2c797160a397daa32835c199014b70b Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Checkpatch-ignore: GIT_COMMIT_ID Fixes: 237e894805dd ("reworked etm/etb into a generic etm part with trace capture") Reviewed-on: https://review.openocd.org/c/openocd/+/7599 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/target/armv8.c')
0 files changed, 0 insertions, 0 deletions