aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/riscv/processor.c
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:17:33 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:17:33 -0300
commit8e4d3a67a0f50a60cea7fe9e99946f313bce9633 (patch)
treef001a62c0de7f3f9c637f6d1312a6b08f38d8a53 /modules/devices/riscv/processor.c
parentb493b6e27a597cecf933327613670b2eec94dbcf (diff)
parent48726c0c219ffeddb45befe0fb8621e1b2648e78 (diff)
Update upstream source from tag 'upstream/2.0.7pre'
Update to upstream version '2.0.7pre' with Debian dir a2ec7db1aec5f19fb8cfbe1c84a27b4779b604d0
Diffstat (limited to 'modules/devices/riscv/processor.c')
-rw-r--r--modules/devices/riscv/processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/riscv/processor.c b/modules/devices/riscv/processor.c
index f2e51c91..d44ca542 100644
--- a/modules/devices/riscv/processor.c
+++ b/modules/devices/riscv/processor.c
@@ -43,7 +43,7 @@ processor_scan(void)
#define CHECK_FOR(k) (g_str_has_prefix(tmp[0], k))
while (fgets(buffer, 128, cpuinfo)) {
gchar **tmp = g_strsplit(buffer, ":", 2);
- if (tmp[0] && tmp[1]) {
+ if (tmp[0] && tmp[1] && !strstr(tmp[0],"isa-") ) {//just drop empty isa-ext
tmp[0] = g_strstrip(tmp[0]);
tmp[1] = g_strstrip(tmp[1]);
} else {
@@ -53,7 +53,7 @@ processor_scan(void)
//get_str("Processor", rep_pname);
- if ( CHECK_FOR("hart") ) {
+ if ( CHECK_FOR("processor") ) {
/* finish previous */
if (processor) {
procs = g_slist_append(procs, processor);