Skip to content

Commit

Permalink
Rename rz_analysis_plugin_tricore to rz_analysis_plugin_tricore_cs
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
imbillow committed Apr 20, 2023
1 parent 8f7f5e0 commit 6a44426
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions librz/analysis/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ analysis_plugins_list = [
]
if capstone_dep.version().split('.')[0].to_int() > 4
analysis_plugins_list += 'riscv_cs'
analysis_plugins_list += 'tricore_cs'
endif

if get_option('use_gpl')
Expand All @@ -56,7 +57,6 @@ if get_option('use_gpl')
'riscv',
'sh',
'sparc_gnu',
'tricore',
'vax',
'xtensa',
'z80',
Expand Down Expand Up @@ -234,6 +234,7 @@ rz_analysis_sources = [

if capstone_dep.version().split('.')[0].to_int() > 4
rz_analysis_sources += 'p/analysis_riscv_cs.c'
rz_analysis_sources += 'p/analysis_tricore_cs.c'
endif

if get_option('use_gpl')
Expand All @@ -245,7 +246,6 @@ if get_option('use_gpl')
'p/analysis_riscv.c',
'p/analysis_sh.c',
'p/analysis_sparc_gnu.c',
'p/analysis_tricore.c',
'p/analysis_vax.c',
'p/analysis_xtensa.c',
'p/analysis_z80.c',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static char *get_reg_profile(RzAnalysis *analysis) {
return strdup(p);
}

// TODO: Implement this
static RzAnalysisLiftedILOp rz_analysis_tricore_il_op() {
return NULL;
}
Expand All @@ -93,8 +94,8 @@ static RzAnalysisILConfig *il_config(RzAnalysis *analysis) {
return cfg;
}

RzAnalysisPlugin rz_analysis_plugin_tricore = {
.name = "tricore",
RzAnalysisPlugin rz_analysis_plugin_tricore_cs = {
.name = "tricore_cs",
.desc = "TRICORE analysis plugin",
.license = "LGPL3",
.arch = "tricore",
Expand All @@ -107,7 +108,7 @@ RzAnalysisPlugin rz_analysis_plugin_tricore = {
#ifndef RZ_PLUGIN_INCORE
RZ_API RzLibStruct rizin_plugin = {
.type = RZ_LIB_TYPE_ANALYSIS,
.data = &rz_analysis_plugin_tricore,
.data = &rz_analysis_plugin_tricore_cs,
.version = RZ_VERSION
};
#endif
2 changes: 1 addition & 1 deletion librz/include/rz_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,7 @@ extern RzAnalysisPlugin rz_analysis_plugin_spc700;
extern RzAnalysisPlugin rz_analysis_plugin_sysz;
extern RzAnalysisPlugin rz_analysis_plugin_tms320;
extern RzAnalysisPlugin rz_analysis_plugin_tms320c64x;
extern RzAnalysisPlugin rz_analysis_plugin_tricore;
extern RzAnalysisPlugin rz_analysis_plugin_tricore_cs;
extern RzAnalysisPlugin rz_analysis_plugin_v810;
extern RzAnalysisPlugin rz_analysis_plugin_v850;
extern RzAnalysisPlugin rz_analysis_plugin_vax;
Expand Down

0 comments on commit 6a44426

Please sign in to comment.