Compare commits

..

3 Commits

Author SHA1 Message Date
Dr-Noob
b1f20cfec6 [v1.07] Fix bug introduced by #251 (reported in #375)
PR #251 added:

```
if defined (__FreeBSD__) || defined (__APPLE__)
...
get_sys_info_by_name
```

that function is available in src/common/sysctl.c.
In the Makefile it builds with sysctl.c but only under FreeBSD:

```
ifeq ($(os), FreeBSD)
```

So it fails under macOS as reported by #375
2025-11-01 09:17:02 +01:00
Dr-Noob
284faf84c3 [v1.07] Bump version 2025-10-31 07:50:04 +01:00
Dr-Noob
a19c421362 [v1.06][RISCV] Add latest extensions and refactor the mask structure
There are *a lot* of new extensions in the Linux kernel now (Linux
v6.16) since the last time I checked (Linux v6.2.10), so added them all
plus ime, which is not present in the kernel apparently, but that I
spotted in a RISC-V chip.

Previously, the mask was represented with a uint64_t value, which is
fine as long as we have less than 65 possible extensions. This is not
the case anymore, so instead I replaced that with a pointer of bool,
which gets allocated depending on the max number of extensions that
we support.
2025-10-31 07:45:07 +01:00
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ ifneq ($(OS),Windows_NT)
HEADERS += $(SRC_DIR)freq/freq.h
CFLAGS += -pthread
endif
ifeq ($(os), FreeBSD)
ifeq ($(os), $(filter $(os), FreeBSD Darwin))
SOURCE += $(SRC_COMMON)sysctl.c
HEADERS += $(SRC_COMMON)sysctl.h
endif

View File

@@ -138,7 +138,7 @@ struct features {
struct extensions {
char* str;
bool* mask; // allocated at runtime with size RISCV_ISA_EXT_ID_MAX-1
bool* mask; // allocated at runtime with size RISCV_ISA_EXT_ID_MAX
};
struct cpuInfo {

View File

@@ -62,7 +62,7 @@
#endif
#ifndef GIT_FULL_VERSION
static const char* VERSION = "1.06";
static const char* VERSION = "1.07";
#endif
enum {