Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2021, 01:41
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 80
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 12
Thanks Rcvd at 48 Times in 21 Posts
BlackWhite Reputation: 14
Bochs's source code fix for S-ICE v2.80

The bug resides in source code "cpu/event.cc", and the concerned function is as follows:
void BX_CPU_C::InterruptAcknowledge(void)

This function is responsible for generating a hardware interrupt when the interrupt flag IF is turned on,
but it does not check the mask in port 0x21(master pic) and port 0xA1(slave pic) thus results in generating
unexpected interrupts.

It is the very bug that causes Nu-Mega's DOS version debugger S-ICE to crash when we command P to single step.

It costs me about 9 months to debug Bochs's source code with VS2019's embedded debugger which further
debugs Bochs's enhanced debugger which debugs S-ICE which debugs a sample 16-bit DOS program. Finally
I figure out the bug and get it fixed.

Here I provide in the attachment the fixed version of "cpu/event.cc" and "iodev/pic.h" . Please note that the
modifed part is marked by [%].

https://blog.cnstock.com/UploadFiles...7127770025.zip
Reply With Quote
The Following 4 Users Gave Reputation+1 to BlackWhite For This Useful Post:
b30wulf (04-17-2021), chants (03-17-2021), MarcElBichon (03-17-2021), niculaita (03-17-2021)
The Following 6 Users Say Thank You to BlackWhite For This Useful Post:
an0rma1 (03-23-2021), chants (03-17-2021), N0P (03-23-2021), niculaita (03-17-2021), o_o (03-17-2021), uranus64 (03-17-2021)
  #2  
Old 03-17-2021, 05:38
jonwil jonwil is offline
VIP
 
Join Date: Feb 2004
Posts: 387
Rept. Given: 2
Rept. Rcvd 21 Times in 9 Posts
Thanks Given: 2
Thanks Rcvd at 65 Times in 34 Posts
jonwil Reputation: 21
Did you submit the fix to the original developers of bochs?
Reply With Quote
  #3  
Old 03-17-2021, 09:12
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 80
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 12
Thanks Rcvd at 48 Times in 21 Posts
BlackWhite Reputation: 14
Quote:
Originally Posted by jonwil View Post
Did you submit the fix to the original developers of bochs?
Yes, I did. Here is the link:
https://sourceforge.net/p/bochs/patches/558/

Last edited by BlackWhite; 03-17-2021 at 13:08.
Reply With Quote
The Following 3 Users Say Thank You to BlackWhite For This Useful Post:
chants (03-18-2021), MarcElBichon (03-17-2021), N0P (03-23-2021)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6 N-CODE - Stop any servive and Start any APP-Release and Source Code wilson bibe General Discussion 5 04-10-2013 00:23


All times are GMT +8. The time now is 07:44.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )