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

Submitter:  None
Submitted:  Thu 27 Mar 2003 08:05:41 PM UTC
 
Category:  gdb Severity:  3 - Normal
Item Group:  sw-bug Status:  None
Privacy:  Public Assigned to:  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 Administrator
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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

 

 

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.9