Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265500 - app-emulation/spim-7.4 emulation error
Summary: app-emulation/spim-7.4 emulation error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ricardo Mendoza (RETIRED)
URL: http://pages.cs.wisc.edu/~larus/spim....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-09 00:50 UTC by Christopher Harvey
Modified: 2009-12-22 23:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.