From 6a444262bb7c7c4c9b6bf7f05654eedd778943ad Mon Sep 17 00:00:00 2001 From: billow Date: Thu, 20 Apr 2023 19:57:56 +0800 Subject: [PATCH] Rename `rz_analysis_plugin_tricore` to `rz_analysis_plugin_tricore_cs` [skip ci] --- librz/analysis/meson.build | 4 ++-- .../p/{analysis_tricore.c => analysis_tricore_cs.c} | 7 ++++--- librz/include/rz_analysis.h | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) rename librz/analysis/p/{analysis_tricore.c => analysis_tricore_cs.c} (94%) diff --git a/librz/analysis/meson.build b/librz/analysis/meson.build index c57cd8199e8..1e90210e5e4 100644 --- a/librz/analysis/meson.build +++ b/librz/analysis/meson.build @@ -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') @@ -56,7 +57,6 @@ if get_option('use_gpl') 'riscv', 'sh', 'sparc_gnu', - 'tricore', 'vax', 'xtensa', 'z80', @@ -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') @@ -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', diff --git a/librz/analysis/p/analysis_tricore.c b/librz/analysis/p/analysis_tricore_cs.c similarity index 94% rename from librz/analysis/p/analysis_tricore.c rename to librz/analysis/p/analysis_tricore_cs.c index acd56253696..9ae861ea775 100644 --- a/librz/analysis/p/analysis_tricore.c +++ b/librz/analysis/p/analysis_tricore_cs.c @@ -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; } @@ -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", @@ -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 diff --git a/librz/include/rz_analysis.h b/librz/include/rz_analysis.h index 5e14aff4e8a..5069649950c 100644 --- a/librz/include/rz_analysis.h +++ b/librz/include/rz_analysis.h @@ -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;