freedreno/isa: add next_instruction(..)
In during the next commits we will change to a generated version of next_instruction(..) based on the actual isa. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11321>
This commit is contained in:
parent
c3b14ade55
commit
6c3befdd70
|
@ -613,6 +613,12 @@ display(struct decode_scope *scope)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
next_instruction(bitmask_t *instr, uint64_t *start)
|
||||
{
|
||||
*instr = *start;
|
||||
}
|
||||
|
||||
static void
|
||||
decode(struct decode_state *state, void *bin, int sz)
|
||||
{
|
||||
|
@ -620,7 +626,9 @@ decode(struct decode_state *state, void *bin, int sz)
|
|||
unsigned errors = 0; /* number of consecutive unmatched instructions */
|
||||
|
||||
for (state->n = 0; state->n < state->num_instr; state->n++) {
|
||||
uint64_t instr = instrs[state->n];
|
||||
bitmask_t instr = { 0 };
|
||||
|
||||
next_instruction(&instr, &instrs[state->n]);
|
||||
|
||||
if (state->options->max_errors && (errors > state->options->max_errors)) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue