[Libre-soc-bugs] [Bug 758] pypowersim and how to run bare metal programs/functions is needed
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Jun 28 15:29:15 BST 2022
https://bugs.libre-soc.org/show_bug.cgi?id=758
--- Comment #2 from Andrey Miroshnikov <andrey at technepisteme.xyz> ---
(In reply to Luke Kenneth Casson Leighton from comment #1)
> andrey do you want this one? there's these:
Sure, just need to understand what it does and what it's for.
>
> https://git.libre-soc.org/?p=openpower-isa.git;a=tree;f=src/test/
> basic_pypowersim;hb=HEAD
This is what I get when I run make:
Traceback (most recent call last):
File "/usr/local/bin/pypowersim", line 11, in <module>
load_entry_point('libresoc-openpower-isa', 'console_scripts',
'pypowersim')()
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 332, in run_simulation
mem = read_data(fname, offs)
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 28, in read_data
res[offset] = struct.unpack('<Q', b)[0] # unsigned long
struct.error: unpack requires a buffer of 8 bytes
make: *** [Makefile:11: sim] Error 1
> https://git.libre-soc.org/?p=openpower-isa.git;a=tree;f=src/test/
> basic_pypowersim_fp;hb=HEAD
Traceback (most recent call last):
File "/usr/local/bin/pypowersim", line 11, in <module>
load_entry_point('libresoc-openpower-isa', 'console_scripts',
'pypowersim')()
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 366, in run_simulation
initial_pc=initial_pc)
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 149, in run_tst
initial_regs=initial_regs, initial_fprs=initial_fprs)
File "/home/rohdo/src/openpower-isa/src/openpower/simulator/qemu.py", line
261, in run_program
q = QemuController(program.binfile, bigendian)
File "/home/rohdo/src/openpower-isa/src/openpower/simulator/qemu.py", line
50, in __init__
self.gdb = GdbController(gdb_path='powerpc64-linux-gnu-gdb')
TypeError: __init__() got an unexpected keyword argument 'gdb_path'
make: *** [Makefile:10: sim] Error 1
> https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=media/audio/mp3/
> mp3_0.sh;hb=HEAD
Traceback (most recent call last):
File "/usr/local/bin/pypowersim", line 11, in <module>
load_entry_point('libresoc-openpower-isa', 'console_scripts',
'pypowersim')()
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 319, in run_simulation
initial_regs = read_entries(arg, 128)
File "/home/rohdo/src/openpower-isa/src/openpower/decoder/isa/pypowersim.py",
line 67, in read_entries
with open(fname) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'audio/mp3/mp3_0.gpr'
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list