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)
- LoongArch porting
- How can I specify in the configuration file or command line that my simulation can wait for remote GDB connections before starting simulation HOT 4
- Fix daily tests failing due to removing gcn3_x86 HOT 7
- RISCV RVV vfredmax.vs and vfredmin.vs implementation is incorrect HOT 2
- RVV instruction vmem faults caused by incorrect vl HOT 1
- CLFLUSH causes TLB assertion error HOT 1
- X86KvmCPU + se.py + mem-size ≥4 GB causes crash
- X86KvmCPU floating point exceptions when executing x87 FPU instructions
- arch-riscv: return values of m5 pseudo instructions in 32 bit systems HOT 7
- CHI (Arm) near/far atomic operation causes deadlock HOT 9
- Replace bitmanip test cases of asmtest resources with upstream one HOT 1
- arch-riscv: remove branching from `vset{i}vl{i}` instruction and allow registers `vl` and `vtype` to be renamed HOT 6
- arch-x86: bug in movss instruction HOT 5
- Test support for Ubuntu 24.04 HOT 3
- arch-x86,O3,KVM switching to full simulation bug HOT 4
- Simple question about custom instruction implementation HOT 1
- Linking Error when enable AddressSanitizer HOT 6
- Bug in restoring a checkpoint using SimpleProcessor and SwitchableProcessor in ARM & KVM setup HOT 6
- gem5::statistics::Counter are 52-bit not 64-bit HOT 3
- Immediate crash when running KVM CPU in SE mode HOT 2
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.