Skip to content

Commit

Permalink
target/xtensa: extract test for cpdisabled exception
Browse files Browse the repository at this point in the history
- add XtensaOpcodeOps::coprocessor with bitmask of coprocessors used by
  the instruction;
- replace coprocessor id parameter of gen_check_cpenable with the
  bitmask of used coprocessors;
- collect coprocessor IDs used by an instruction in the disassembly
  loop;
- put test for coprocessor disabled exception after the alloca test;

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
jcmvbkbc committed Oct 1, 2018
1 parent 90d6494 commit 582fef0
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 108 deletions.
1 change: 1 addition & 0 deletions target/xtensa/cpu.h
Expand Up @@ -381,6 +381,7 @@ typedef struct XtensaOpcodeOps {
const uint32_t *par;
uint32_t op_flags;
uint32_t windowed_register_op;
uint32_t coprocessor;
} XtensaOpcodeOps;

typedef struct XtensaOpcodeTranslators {
Expand Down

0 comments on commit 582fef0

Please sign in to comment.