Skip to content

Commit

Permalink
fix tricore endian
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Apr 17, 2023
1 parent 878883a commit d9f13fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static const struct {
TRICORE_option,
~(CS_MODE_TRICORE_110 | CS_MODE_TRICORE_120 | CS_MODE_TRICORE_130
| CS_MODE_TRICORE_131 | CS_MODE_TRICORE_160 | CS_MODE_TRICORE_161
| CS_MODE_TRICORE_162 | CS_MODE_BIG_ENDIAN),
| CS_MODE_TRICORE_162 | CS_MODE_LITTLE_ENDIAN),
},
#else
{ NULL, NULL, 0 },
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tricore.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void test()
struct platform platforms[] = {
{
CS_ARCH_TRICORE,
CS_MODE_BIG_ENDIAN | CS_MODE_TRICORE_162,
CS_MODE_TRICORE_162,
(unsigned char*)TRICORE_CODE,
sizeof(TRICORE_CODE) - 1,
"TriCore",
Expand Down

0 comments on commit d9f13fe

Please sign in to comment.