Comments (3)
Loading this binary isn't actually supposed to work since the compiled binary is a MACH-O file and not an ELF file. The error message isn't very helpful though. The problem is most likely that find_compatible
doesn't handle the case where object_file.create(path)
can't find a valid loader and returns None
instead of an a loader instance. We should probably raise a ValueError
in this case which would be consistent with init_compatible
.
from gem5.
Loading this binary isn't actually supposed to work since the compiled binary is a MACH-O file and not an ELF file. The error message isn't very helpful though. The problem is most likely that
find_compatible
doesn't handle the case whereobject_file.create(path)
can't find a valid loader and returnsNone
instead of an a loader instance. We should probably raise aValueError
in this case which would be consistent withinit_compatible
.
Ah yes, i was far too caught up in thinking about the ISA without considering other factors.
@ivanaamit has been tasked with looking into making more helpful errors in this code. I'm curious as to if the PowerISA angle is some antiquated code which processes Apple binaries automatically as Power ISA, or if it's just the last condition in an if-else/switch-type statement.
from gem5.
Loading this binary isn't actually supposed to work since the compiled binary is a MACH-O file and not an ELF file. The error message isn't very helpful though. The problem is most likely that
find_compatible
doesn't handle the case whereobject_file.create(path)
can't find a valid loader and returnsNone
instead of an a loader instance. We should probably raise aValueError
in this case which would be consistent withinit_compatible
.Ah yes, i was far too caught up in thinking about the ISA without considering other factors.
@ivanaamit has been tasked with looking into making more helpful errors in this code. I'm curious as to if the PowerISA angle is some antiquated code which processes Apple binaries automatically as Power ISA, or if it's just the last condition in an if-else/switch-type statement.
If memory serves me right, the reason the exception comes from PowerISA is that it is the first ISA in the list. Most implementations of _is_compatible_with
wouldn't cope correctly with None.
from gem5.
Related Issues (20)
- cpu-o3: executing MFENCE in two parallel SMT threads causes hang HOT 3
- Indirect Memory Prefetcher only performs a single indirect prefetch even if the prefetch distance is bigger than 1 HOT 2
- cpu-o3: Assertion failure in CPU::removeThread() on SMT thread exit
- arch-riscv: Boot to linux using Version 3.0.0 of riscv-ubuntu-20.04-boot hangs with O3 CPU HOT 1
- cpu-kvm: KVM CPU reports zero instructions simulated when running on Intel Alder Lake host HOT 1
- global instruction counter HOT 1
- Build ROCm disk image HOT 8
- Dramsys failing to compile with GCC >= v13 (causing weekly test failure)
- The registered Python class cannot be recognized and imported during the compilation of the library. HOT 1
- kvm full system workloads fail to run on x86 HOT 9
- Missing actions in some transitions for MOESI_CMP_directory-dir.sm
- minor-cpu: unable to find destination due to unconditional branch followed by memory access HOT 8
- cpu: Abort attempt to rename a pinned register HOT 1
- ARM32 prefetch triggers infinite loop HOT 1
- mouse.cc throws panic: Resetting mouse wrap mode unimplemented.
- Failed to connect GDB for RISC-V CPU
- Disk images updates for v24.0
- Using Ruby-CHI as a soft NoC for cosimulation with Xiangshan tile HOT 1
- arch-x86: logical instructions execute in-order due to flags input dependency on Zaps CCReg
- arch-x86: register moves erroneously depend on prior value in destination register
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gem5.