bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #2965, WAI operation is broken in...


You are not allowed to post comments on this tracker with your current authentication level.

bug #2965: WAI operation is broken in simulator

Submitted by:  None
Submitted on:  Thu 27 Mar 2003 08:05:41 PM UTC  
Category:  gdb Severity:  3 - Normal
Item Group:  sw-bug Status:  None
Privacy:  Public Assigned to:  Stephane Carrez <ciceron>
Open/Closed:  Open

Thu 27 Mar 2003 08:48:35 PM UTC, comment #1: 

I agree.  But the 'wai'/exit feature is important for
proper use of the simulator (by gcc/gdb testsuites and also
to be able to run/test a program without having it to
hang; ie, some example).

The 'wai' current implementation only pushes all the registers.  It is effective when an interrupt vector table
is defined.  The pending interrupts are not waited thus
providing some broken behavior.

I'll try to fix that as soon as I've some time.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Thu 27 Mar 2003 08:05:41 PM UTC, original submission:  

when issuing a WAI instruction _asm_ __volatile__ ("wai") the simulator simply terminates execution.  It should enter a wait state.  Without this operation functioning correctly it is impossible to simulate a low power mode on the hc11 while waiting for an interrupt to occur.

A workaround to waiting for an interrupt is to poll the interrupt flag.  This will work if you are just waiting for an interrupt but it will not allow simulation of a low power mode.



No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2003-03-27 ciceron Assigned toNone => NA

Back to the top

Powered by Savane 3.5