bugSimulavr: an AVR simulator - Bugs: bug #9400, Message `Executed ... insns/sec':...

 
 

bug #9400: Message `Executed ... insns/sec': floating point exception

Submitter:  None
Submitted:  Sun 20 Jun 2004 11:09:42 PM UTC
   
 
Category:  Simulation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  troth
Originator Email:  * -email is unavailable- Open/Closed:  Closed
Component Version:  * None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Jun 2004 03:35:43 PM UTC, comment #1: 
Theodore A. Roth <troth>
Sun 20 Jun 2004 11:09:42 PM UTC, original submission:  

Simulating very short programm (without gdb, breakpoint use).
avrcore.c: avr_core_run(): run_time is 0 (millisecond resolution).
To avoid this I added `run_time ? ... : 0LL' (2 calls of avr_message).

P.S.
Comment to function `eeprom_wr_op_cb' (eeprom.c): "Since the get_program_time() function only has 10 ms resolution".
   Glibc's `gettimeofday' (used in get_program_time) has microsecond resolution. This checked on Slackware Linux 1997 (2.0 kernel): i486DX2 50MHz (without rdtsc command). Difference between 2 calls of gettimeofday was about 24 microseconds (exclude long periods of system interruptions). And on modern computer with Mandrake 9.1 (2.4 kernel) such difference is 0 or 1 microsecond.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-21 troth StatusNone Fixed
    Assigned toNone troth
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code