SPARC user mode multithread
Hello,
I am trying to run the blackscholes program from the PARSEC2.1 benchmark suite in QEMU SPARC user mode.
In this case I am trying to run with just 2 threads. Unfortunately, when I try to run the program it hangs with the following prints:
HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516
HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516
I also turned on the print_syscall prints and have the attached the debugging output below.
This problem can be reproduced by running the following command from within the blackscholes sparc-linux directory(which I can provide) referencing the local qemu installation:
/qemu/sparc-linux-user/qemu-sparc blackscholes 2 input_file output_file
Thank you for your help,
David
TARGET SPARC
calling cpu_loop
INSIDE CPU_LOOP
23738 uname(0x4007eac2)no need to transcode
23738 brk(NULL)23738 brk(0x000e4c60)
23738 brk(0x00105c60)
23738 brk(0x00106000)
23738 getpid(1,568056,0,-2139062144,1074260345,1644167168)
23738 rt_sigaction(32,1074259708,0,132136,8,0)
23738 rt_sigaction(33,1074259708,0,132136,8,0) 23738 rt_sigaction(34,1074259708,0,132136,8,0) 23738 rt_sigprocmask(1,1074260128,0,8,8,0) 23738 rt_sigprocmask(2,1074260128,0,8,8,0) 23738 fstat64(16777216,0x4007e7b8)
23738 mmap(NULL,2097152,0x3000000,0x22000000,-1,0) 23738 write(1,0x40081000,35)
PARSEC Benchmark Suite Version 2.1
23738 open("david_input",O_RDONLY)
23738 fstat64(50331648,0x4007e5a8)
23738 mmap(NULL,2097152,0x3000000,0x22000000,-1,0) 23738 read(3,0x40083000,4096)
23738 write(1,0x40081000,81)
23738 close(3)
23738 munmap(0x40083000,2097152)
23738 write(1,0x40081000,18)
Num of Options: 1
23738 write(1,0x40081000,17)
Num of Runs: 100
23738 write(1,0x40081000,17)
Size of data: 40
23738 getrlimit(3,1074259752,17,-1033270193,10,940624)
23738 pipe(1074260160,0,1074260160,0,16,4)
23738 clone(3840,949056,24,192148,0,940624)calling do_fork 4 calling cpu_clone_regs
HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516 got out of cpu_clone_regs
got out of errno
23738 rt_sigprocmask(4,1074259528,0,8,-1,-1)
23738 read(0,0x4007e5b4,148)INSIDE CPU_LOOP
23739 clone(951200,949056,650240,1074259380,666624,940624)calling do_fork 4 calling cpu_clone_regs
HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516 got out of cpu_clone_regs
got out of errno
23739 close(0)
23739 close(0)
23739 open("david_output",O_RDONLY|O_CREAT|O_TRUNC|0x1)
23739 fstat64(0,0x4007e1b0)
23739 mmap(NULL,2097152,0x3000000,0x22000000,-1,0)
23739 write(0,0x40085000,23)
23739 close(0)
23739 munmap(0x40085000,2097152)
23739 write(0,0x4007e95c,148)
23739 rt_sigprocmask(4,0,1074260080,8,572073,952256)
23739 rt_sigsuspend(1074260080,8,1074260080,8,572073,952256)INSIDE RT SIGSUSPEND
Quoted 6 lines · David Munday
Hello,
I am trying to run the blackscholes program from the PARSEC2.1 benchmark suite in QEMU SPARC user mode.
In this case I am trying to run with just 2 threads. Unfortunately, when I try to run the program it hangs with the following prints:HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516
HELPME: /mada/users/cromom/ESESC_PROJECT/esesc/emul/qemu1/target-sparc/cpu.h:516
It means that someone should figure out what Linux/Sparc does to registers, register windows and processor flags when doing "clone". The fix should be trivial.