Skip to content

Near point #59

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

Closed
wants to merge 20 commits into from
Closed
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
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ cmake_minimum_required(VERSION 3.15)

project(libhal-exceptions LANGUAGES CXX)


if("${RUNTIME}" STREQUAL "ARM_CORTEX_GCC")
set(SOURCE_LIST src/builtin/gcc/impl.cpp)
elseif("${RUNTIME}" STREQUAL "ARM_CORTEX_ESTELL")
Expand Down
3 changes: 2 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def build_requirements(self):
self.test_requires("boost-ext-ut/1.1.9")

def requirements(self):
self.requires("libhal-util/[^5.0.0]")
self.requires("libhal-util/[^5.2.0]")

def build(self):
cmake = CMake(self)
Expand Down Expand Up @@ -120,6 +120,7 @@ def package_info(self):
"-Wl,--wrap=__cxa_end_catch",
"-Wl,--wrap=__cxa_begin_catch",
"-Wl,--wrap=__cxa_end_cleanup",
"-Wl,--wrap=__cxa_call_unexpected",
"-Wl,--wrap=__gnu_unwind_pr_common",
"-Wl,--wrap=__aeabi_unwind_cpp_pr0",
"-Wl,--wrap=_sig_func",
Expand Down
21 changes: 21 additions & 0 deletions datasheets/near_point/block_seperation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"reg": [
{
"bits": 10,
"name": "inter-block offset",
"type": 6
},
{
"bits": 22,
"name": "block index",
"type": 5
}
],
"config": {
"fontsize": 14,
"bits": 32,
"hflip": true,
"lanes": 1,
"compact": true
}
}
21 changes: 21 additions & 0 deletions datasheets/near_point/linear_near_point_entry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"reg": [
{
"bits": 24,
"name": "entry number offset",
"type": 5
},
{
"bits": 8,
"name": "average function size",
"type": 6
}
],
"config": {
"fontsize": 14,
"bits": 32,
"hflip": true,
"lanes": 1,
"compact": true
}
}
12 changes: 12 additions & 0 deletions demos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,21 @@ libhal_build_demos(
INCLUDES
.

SOURCES
multi_levels.elf.nm.np.cpp

PACKAGES
libhal-exceptions

LINK_LIBRARIES
libhal::exceptions

# SOURCE_FLAGS
# -fno-ipa-sra

LINK_FLAGS
-L${CMAKE_SOURCE_DIR}/
-Tlinker-stm32f103.ld
-Wl,--wrap=_ZSt17__throw_bad_allocv
-Wl,--wrap=abort
)
26 changes: 12 additions & 14 deletions demos/applications/multi_levels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ int funct_group3_0();
int funct_group4_0();
int funct_group5_0();
int funct_group6_0();
// int funct_group7_0();
// int funct_group8_0();
// int funct_group9_0();
// int funct_group10_0();
// int funct_group11_0();
// int funct_group12_0();
// int funct_group13_0();
int funct_group7_0();
int funct_group8_0();
int funct_group9_0();
int funct_group10_0();
int funct_group11_0();
int funct_group12_0();
int funct_group13_0();
// int funct_group14_0();
// int funct_group15_0();
// int funct_group16_0();
Expand All @@ -47,12 +47,11 @@ int funct_group6_0();
using signature = int(void);

std::array functions{
&funct_group0_0, &funct_group1_0, &funct_group2_0, &funct_group3_0,
&funct_group4_0, &funct_group5_0, &funct_group6_0,
&funct_group0_0, &funct_group1_0, &funct_group2_0, &funct_group3_0,
&funct_group4_0, &funct_group5_0, &funct_group6_0, &funct_group7_0,
&funct_group8_0, &funct_group9_0, &funct_group10_0, &funct_group11_0,
&funct_group12_0, &funct_group13_0,
#if 0
&funct_group7_0, &funct_group8_0,
&funct_group9_0,
&funct_group10_0, &funct_group11_0, &funct_group12_0, &funct_group13_0,
&funct_group14_0, &funct_group15_0, &funct_group16_0, &funct_group17_0,
&funct_group18_0, &funct_group19_0, &funct_group20_0, &funct_group21_0,
&funct_group22_0, &funct_group23_0, &funct_group24_0
Expand Down Expand Up @@ -2631,8 +2630,6 @@ int funct_group6_11()
return side_effect;
}

#if 0

int funct_group7_1();

int funct_group7_0()
Expand Down Expand Up @@ -5750,6 +5747,7 @@ int funct_group13_47()
return side_effect;
}

#if 0
int funct_group14_1();

int funct_group14_0()
Expand Down
1 change: 0 additions & 1 deletion demos/applications/single_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ struct error
std::uint64_t start = 0;
std::uint64_t end = 0;
int volatile value = 5;

void foo()
{
if (value) {
Expand Down
2 changes: 1 addition & 1 deletion demos/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class demos(ConanFile):
python_requires = "libhal-bootstrap/[^4.0.0]"
python_requires = "libhal-bootstrap/[^4.0.2]"
python_requires_extend = "libhal-bootstrap.demo"

def requirements(self):
Expand Down
Loading
Loading