From 24a796cf54a2c187b01f09cc720d6972be86551c Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Fri, 15 Aug 2025 11:50:42 +0200 Subject: [PATCH] changes instantiation to mt --- .launch/TGC-VP interp.launch | 49 ++++++++++++++++++++++ .launch/TGC-VP-FW-Debug dhrystone.launch | 52 ++++++++++++++++++++++++ Linux.code-workspace | 13 ++++++ dbt-rise-riscv | 2 +- scc | 2 +- src/mcount.c | 9 ++++ 6 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 .launch/TGC-VP interp.launch create mode 100644 .launch/TGC-VP-FW-Debug dhrystone.launch create mode 100644 Linux.code-workspace create mode 100644 src/mcount.c diff --git a/.launch/TGC-VP interp.launch b/.launch/TGC-VP interp.launch new file mode 100644 index 0000000..11d0f2d --- /dev/null +++ b/.launch/TGC-VP interp.launch @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.launch/TGC-VP-FW-Debug dhrystone.launch b/.launch/TGC-VP-FW-Debug dhrystone.launch new file mode 100644 index 0000000..ced7812 --- /dev/null +++ b/.launch/TGC-VP-FW-Debug dhrystone.launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Linux.code-workspace b/Linux.code-workspace new file mode 100644 index 0000000..39c5ea3 --- /dev/null +++ b/Linux.code-workspace @@ -0,0 +1,13 @@ +{ + "folders": [ + { + "path": "build/Linux4TGC/buildroot" + }, + { + "path": "build/Linux4TGC/opensbi" + }, + { + "path": "build/Linux4TGC/linux" + } + ] +} \ No newline at end of file diff --git a/dbt-rise-riscv b/dbt-rise-riscv index 06fe403..8a884ed 160000 --- a/dbt-rise-riscv +++ b/dbt-rise-riscv @@ -1 +1 @@ -Subproject commit 06fe403e69ac61254e951b9751d567c166ce07dd +Subproject commit 8a884edb80f04a75a78658bef6ec63e455d1c530 diff --git a/scc b/scc index 658e195..323dcb3 160000 --- a/scc +++ b/scc @@ -1 +1 @@ -Subproject commit 658e19539affeaaf9117d9405e6faf5ff796856b +Subproject commit 323dcb3bf3cb3a1bb4668d0f0b6ee4ffb4455c85 diff --git a/src/mcount.c b/src/mcount.c new file mode 100644 index 0000000..b762e07 --- /dev/null +++ b/src/mcount.c @@ -0,0 +1,9 @@ +/* The canonical name for the function is `_mcount' in both C and asm, + but some old asm code might assume it's `mcount'. */ +void _mcount (void); +weak_alias (_mcount, mcount); + +void _mcount (void) +{ + mcount_internal ((u_long) __builtin_return_address (1), (u_long) __builtin_return_address(0)); +}