Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tricore support #352

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ArchMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ static const std::map<std::string, ArchMapper> arch_map = {
CUSTOM_BITS((RzCore *core) {
return 32;
})}},

{ "tricore", { "tricore" } },
};

static const std::map<std::string, std::string> compiler_map = {
Expand Down Expand Up @@ -185,7 +187,7 @@ RZ_API std::string SleighIdFromSleighAsmConfig(const char *cpu, int bits, bool b
auto proc = lang.getProcessor();
if(StrToLower(proc) == low_cpu)
{
return proc
return proc
+ ":" + (bigendian ? "BE" : "LE")
+ ":" + to_string(bits)
+ ":" + "default";
Expand Down
4 changes: 3 additions & 1 deletion src/RizinTypeFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ Datatype *RizinTypeFactory::fromRzTypeInternal(const RzType *ctype, string *erro
{
RzCoreLock core(arch->getCore());
char *tstr = rz_type_as_string(core->analysis->typedb, ctype);
*error = std::string("Failed to get any calling convention for callable ") + tstr;
if (error) {
*error = std::string("Failed to get any calling convention for callable ") + tstr;
}
rz_mem_free(tstr);
return nullptr;
}
Expand Down
Loading