Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 265500

Summary: app-emulation/spim-7.4 emulation error
Product: Gentoo Linux Reporter: Christopher Harvey <chris>
Component: Current packagesAssignee: Ricardo Mendoza (RETIRED) <ricmm>
Status: RESOLVED UPSTREAM    
Severity: normal CC: spatz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://pages.cs.wisc.edu/~larus/spim.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Christopher Harvey 2009-04-09 00:50:17 UTC
Running a simple program produces different behaviour in xspim 7.4 than in xspim 7.3

Reproducible: Always

Steps to Reproduce:
1. load the test case provided below
2. run the program in xspim 7.4
3. read the output

Actual Results:  
Memory access violation. 
the register $a0 is mysteriously changed on the jal command.

Expected Results:  
some text printed on the screen. 

This works in 7.3.  

Here is the test file.

	.data
character: .asciiz "some text"
	.text
	.globl  main

main:
	la $a0, character
	jal putchar

	#exit program
	li $v0, 10
	syscall
	
putchar:
	li   $v0, 4
	syscall


I've also submitted a bug report on 7.3. #261784
Instead of making this version stable, maybe we should add version 7.3-r1  (I'm pretty sure I've seen that floating around somewhere)

Comments in previous bug are relevant.
Comment 1 Dror Levin (RETIRED) gentoo-dev 2009-12-22 23:47:11 UTC
Your test case works for me in spim-7.5 which I committed to the tree a few hours ago. If you still experience this problem with the new version, please reopen.