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 authentification level.

bug #2965: WAI operation is broken in simulator

Submitted by:  None
Submitted on:  Thu 27 Mar 2003 08:05:41 PM UTC  
 
Category: gdbSeverity: 3 - Normal
Item Group: sw-bugStatus: None
Privacy: PublicAssigned 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.

Anonymous

 

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Thu 27 Mar 2003 08:48:35 PM UTCciceronAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup