Stanislav Shwartsman
42fdd8a3a1
During Bochs benchmarking I figured out that hostasm actually slow down the emulation ... so remove this ugly code which also doesn't help :)
...
speedup flags update for some instructions - idea was taken from DT patch by h.johansson
2007-10-21 22:07:33 +00:00
Stanislav Shwartsman
28a5c6741c
Fix SSE4 MOVNTDQA instruction - memory access must be always aligned
2007-10-20 17:03:33 +00:00
Stanislav Shwartsman
5445de19d1
Decoding : F2 and F2 prefix could override prefix 66 when determine SSE opcode
2007-10-20 10:56:44 +00:00
Stanislav Shwartsman
0a621e6c43
Remove out-of-date patch
2007-10-19 23:02:16 +00:00
Stanislav Shwartsman
679110caa9
fixed push to new stack for long mode
2007-10-19 12:40:19 +00:00
Stanislav Shwartsman
0f3fdaf94b
exception was suffering from the same issue - fixed with new_stack push functtions
2007-10-19 10:59:39 +00:00
Stanislav Shwartsman
14b4f66d4e
Fixed comments for bios_printf (patch from #SF tracker)
2007-10-19 10:26:49 +00:00
Stanislav Shwartsman
0fc32d3c81
Fixed except_chk issue in more clean way - added 3 new methods for pushing to new, still not loaded stack
2007-10-19 10:14:33 +00:00
Stanislav Shwartsman
4ec7f5df39
Optimize access to IP (16 bit) - made IP register similar to GPR
2007-10-18 22:44:39 +00:00
Stanislav Shwartsman
8065ada31f
Some EIP setting cleanups.
...
OK, currently I see big mess with setting of CS/EIP and SS/ESP everywhere, I have to unify it and make it easier !
2007-10-18 21:27:56 +00:00
Stanislav Shwartsman
f8317d2dcd
Unwrap all memory access functions, speed is still more important that code duplication in Bochs :)
2007-10-17 18:09:42 +00:00
Stanislav Shwartsman
52211d2e80
renew trace cache patch - update to the CVS
2007-10-16 22:03:43 +00:00
Stanislav Shwartsman
6c79b067a6
Fixed __386__ macro in guest2host memory accesses - should be LITTLE_ENDIAN instead
2007-10-16 16:17:48 +00:00
Stanislav Shwartsman
f69a21ab2b
Fix some copyright messages
2007-10-15 22:07:52 +00:00
Stanislav Shwartsman
c0640a078c
INFO message about CPU reset
2007-10-14 21:42:50 +00:00
Stanislav Shwartsman
52891b501b
Correct name for cpu param when only 1 cpu is used
2007-10-14 19:36:23 +00:00
Stanislav Shwartsman
e9801ef501
Support for restore cpu (and any other device from bochs root) from debugger
2007-10-14 19:04:51 +00:00
Volker Ruppert
834904f49b
- improved HD recognition and CD boot (patches by Myles Watson)
...
* fixed minor error from printf patch confusion (negation based on wrong word)
* added helper function await_ide
* changed lba calculation to not corrupt lba (for debugging and clarity)
* added support for partial completions of ata_cmd_packet (never happens in
the simulator, but happens all the time in hardware)
* update atapi_request_sense and atapi_is_ready - based on FILO
* correct an int 15 call that should have been int 0x15
* trivial fix when BX_PCIBIOS and BX_ROMBIOS32 not defined
- implemented %X in bios_printf (patch by Sebastian)
2007-10-14 08:11:35 +00:00
Stanislav Shwartsman
e6d13d526b
Suppory 64-=bit CR2 value in info cr command
2007-10-14 00:23:06 +00:00
Stanislav Shwartsman
c0e7c31b7d
Param name fixed to capital letters
2007-10-14 00:22:07 +00:00
Stanislav Shwartsman
d7431ca11a
Support for functionilirt of restoring/saving some single leaf insetad of all restore_hardware - will be used in debugger
2007-10-14 00:20:30 +00:00
Stanislav Shwartsman
ac272e9383
Changes breakpoints configure time enable macroses - reduce amount of compile-time parameters
2007-10-12 22:11:25 +00:00
Stanislav Shwartsman
2a1bcb3e21
Some fixes in CPUID by default
2007-10-12 21:45:41 +00:00
Stanislav Shwartsman
26848ad07d
Change ARPL error message to BX_DEBUG (happens too offen in win98)
2007-10-12 19:45:12 +00:00
Stanislav Shwartsman
082eb05b6b
First step to fully configurable CPUID
...
- put CPUID functions data into array, in future we could load this array from configure file
- cpuid initialize function is more flexible now but still reuire some work
2007-10-12 19:30:51 +00:00
Stanislav Shwartsman
be9ad60ef3
cleanups
2007-10-11 22:44:17 +00:00
Stanislav Shwartsman
8adbbcf17c
Started first implementation of MONITOR/MWAIT
2007-10-11 21:29:01 +00:00
Stanislav Shwartsman
f6ed95785f
added cpu state param - for future use and for dbg info
...
started to move debugger to info bx_param interface -> info sse and info mmx commands modified
2007-10-11 18:12:00 +00:00
Stanislav Shwartsman
fbcdfa49c2
Cleanup
2007-10-10 22:20:32 +00:00
Stanislav Shwartsman
c6efc84149
Optimize building of segment ROK/WOK cache
2007-10-10 22:00:51 +00:00
Stanislav Shwartsman
82b7eaabd5
CLFLUSH do not fault when checking execute only segment
2007-10-10 21:48:46 +00:00
Volker Ruppert
ed3fdad74d
- reverted removal of one DPTE checksum bugfix
...
- fixed %ld and %lu padding (now only using it for %lx)
2007-10-10 17:12:07 +00:00
Stanislav Shwartsman
c0d5b9040c
Prepare for 4-arg instructions (will be needed for AMD SSE5)
2007-10-09 20:24:42 +00:00
Stanislav Shwartsman
624a543c34
Fix compilation warning
2007-10-09 20:23:01 +00:00
Stanislav Shwartsman
07739173f5
add --show-ips to all configs for future releases (it is not ON by default ?)
...
Bit32u -> bx_phy_address in debugger and some other places
2007-10-09 19:49:23 +00:00
Volker Ruppert
fc6693001c
- rombios patches by Myles Watson <mylesgw@gmail.com>
...
* corrects a spelling error and removes the lba_capable comment
* moves dpte_segment after dpte_offset (endian problem) in the struct
* changes int13 0x15 to use the logical geometry instead of physical to
return sectors
* clips cylinders in Int13DPT
* fixes bit shift problem in options (parens in the wrong place)
* returns the correct offset for dpte.iobase2
* fixes a pointer arithmetic error in calculating the checksum of the dpte
* moves #if BX_SUPPORT_FLOPPY to include more floppy code
* added support for %lx %ld and %lu for bios_printf()
2007-10-09 16:49:53 +00:00
Stanislav Shwartsman
2d981562c4
changes Bit32u -> bx_phy_address in dbg paging method
2007-10-08 20:45:30 +00:00
Stanislav Shwartsman
a206d3aef6
Enable MTRRs by default for P6
2007-10-08 19:46:37 +00:00
Stanislav Shwartsman
c8b4b32826
Merged harddrive patch from #SF tracker
2007-10-08 19:33:08 +00:00
Stanislav Shwartsman
9326aa151f
Merge checksum patch from mailing list -> need to recompile BIOS
2007-10-07 21:09:15 +00:00
Stanislav Shwartsman
2548c05537
Enable SSE4_2 in CPUID
2007-10-01 21:08:26 +00:00
Stanislav Shwartsman
dbb91069f4
Added SSE4_2 instructions emulation
2007-10-01 19:59:37 +00:00
Stanislav Shwartsman
de72d9141f
Disasm updates (bugfixes) + disasm of all SSE4_2 instructions
2007-10-01 19:57:46 +00:00
Stanislav Shwartsman
a0d0de9fd4
Fixed ARPL issue mentioned in
...
Attacks on Virtual Machine Emulators
document by Symantec
2007-09-30 18:47:41 +00:00
Volker Ruppert
e48647acc1
- updates related to the save/restore changes
2007-09-29 09:01:02 +00:00
Stanislav Shwartsman
c6df131c0e
Added save/restore to deprecated options in configure script. Removed very old (more than 2 years old) depracated options
2007-09-28 20:26:33 +00:00
Stanislav Shwartsman
1a5648c269
Update major changes in CHANGES
2007-09-28 20:05:50 +00:00
Stanislav Shwartsman
9246d90989
Removed save/restore option
2007-09-28 20:03:31 +00:00
Stanislav Shwartsman
071c5c1a26
A lot of changes but everything is really trivial.
...
Make save/restore default feature, the configure option for save/restore removed from configure script and save/restore made available forever. All code now assume it is exists. Bochs save/restore tree previosly called "save_restore" renamed to "bochs" tree and it will be havily used everywhere, starting from save/restore and ending by various bochs debugger functions. I am going to rework debugger code to get rid of debug CPU access functions and use this "bochs" param tree instead
2007-09-28 19:52:08 +00:00
Volker Ruppert
1c5955c9ff
- installer now uses system variable WINDIR instead of hardcoded C:\WINDOWS
...
- uninstaller did not remove legacy BIOS file
2007-09-28 17:58:48 +00:00
Volker Ruppert
31d7fb897b
- fixed windebug feature for x86-64
2007-09-27 21:21:21 +00:00
Stanislav Shwartsman
aaf2077bf7
Enable BIOS compilation on amd64 host (patch from developers mailing list + SF tracker)
2007-09-27 20:17:05 +00:00
Stanislav Shwartsman
02b7d8b43d
Remove 'result' variable where it is definitelly not needed - simplify sse code
2007-09-27 16:23:29 +00:00
Stanislav Shwartsman
d9005b88c1
Added error code for exception debug messages - help to debug
2007-09-27 16:22:14 +00:00
Stanislav Shwartsman
deb79e9675
[Bochs-developers] [PATCH] avoid RCX without BX_SUPPORT_X86_64
2007-09-27 16:11:32 +00:00
Stanislav Shwartsman
476baaf1d8
ThiS patch makes watchpoints work even if they are triggered on CPUs other than CPU 0 during SMp.
...
Patch from developers mailing list
2007-09-27 16:10:45 +00:00
Stanislav Shwartsman
33a5305803
Fix error message when doing set cpu command
2007-09-27 07:03:11 +00:00
Stanislav Shwartsman
7e629dedad
remove dbg print
2007-09-26 19:10:41 +00:00
Stanislav Shwartsman
44a04a5fa3
readability/writeability bit should not be checked in 64-bit mode
2007-09-26 19:09:10 +00:00
Stanislav Shwartsman
dcb0335ae9
Debug first instruction in exception handler after exception
2007-09-26 18:07:39 +00:00
Stanislav Shwartsman
e812f81e7b
Fixes in zero upper ECX
2007-09-25 16:11:32 +00:00
Stanislav Shwartsman
6b86091441
Implemented new debugger 'page' command according to feature request
...
[ bochs-Feature Requests-604221 ] Debugger command: query lin<->phys mapping
2007-09-23 21:10:06 +00:00
Volker Ruppert
208caf109b
- missing 'datarootdir' variable added (fixed warning from configure script)
2007-09-23 08:45:14 +00:00
Volker Ruppert
cd3f204da9
- removed old BX_SCHEDULED_DIE_TIME code after added new benchmark option
2007-09-23 08:44:30 +00:00
Stanislav Shwartsman
f71f2712a2
Removed duplicate code
2007-09-22 16:04:47 +00:00
Stanislav Shwartsman
c719eecb8d
Implemented Bochs benchmarking mode according to feature request
...
[ 1799946 ] benchmark mode
2007-09-22 15:59:41 +00:00
Stanislav Shwartsman
f562eed497
Applied patch
...
[ 1799877 ] Fix for parallel build (make -j2)
2007-09-22 13:02:42 +00:00
Stanislav Shwartsman
ebde420f14
Fixed SMP assertion
2007-09-22 12:59:40 +00:00
Stanislav Shwartsman
3e3254ecc4
some speedup for SSE code - achived by code simplification
2007-09-20 22:55:03 +00:00
Stanislav Shwartsman
71902dc8bd
Print ACPI support indication
2007-09-20 18:50:01 +00:00
Stanislav Shwartsman
91e6ca8d5c
Implemented MTRR support
...
Fixes in #PF exception priority
2007-09-20 17:33:35 +00:00
Volker Ruppert
1db3741d56
- removed duplicate file from archive
2007-09-19 21:09:36 +00:00
Stanislav Shwartsman
8e0ddbc59b
dos2unix
2007-09-19 19:43:47 +00:00
Stanislav Shwartsman
0dc4badfbb
Added SSE4A and SSE4_2 to disassembler
...
Implemented POPCNT instruction
2007-09-19 19:38:10 +00:00
Volker Ruppert
8c80696023
- regenerated after version number update
2007-09-17 16:22:22 +00:00
Volker Ruppert
df53247fa8
- exclude statements must appear prior to the file list (expected by tar 1.15.1)
...
- added release tag for 2.3.5 to user doc
- updated version number and strings after release
2007-09-17 16:20:24 +00:00
Volker Ruppert
2fa8e4dce8
- updates for release 2.3.5
2007-09-16 07:53:00 +00:00
Volker Ruppert
20175e10dd
- updated several parts of the documentation
2007-09-15 16:00:25 +00:00
Volker Ruppert
31cf899020
- fixed the memory allocation for the ACPI tables in situations when less than
...
16MB are present (patch by Bernhard Kauer)
2007-09-15 07:24:37 +00:00
Stanislav Shwartsman
efbcc99e9a
get rid of ugly do/while(0) construction
2007-09-14 19:39:11 +00:00
Stanislav Shwartsman
5a2ce284c3
Fixed Bochs exit in SMP mode when only one CPU present
2007-09-13 09:44:56 +00:00
Stanislav Shwartsman
9612691aad
Debug print changed to look a bit better
2007-09-11 13:11:03 +00:00
Stanislav Shwartsman
70f513b07b
Make efer control MSR separate register
2007-09-10 20:47:08 +00:00
Volker Ruppert
471e89dc84
- INT 15h AH=86h was reading the wrong stack frame (SF patch #1791000 )
2007-09-10 20:01:07 +00:00
Volker Ruppert
2346acca98
- regerated after latest updates
2007-09-10 19:25:51 +00:00
Stanislav Shwartsman
dc65c0c76a
Update docs with SSE support and OS support
2007-09-10 16:18:09 +00:00
Stanislav Shwartsman
b4df87c9b0
Added CVS id
2007-09-10 16:04:41 +00:00
Stanislav Shwartsman
412eeeeb7c
Get crregs definition to separate file from cpu.h
2007-09-10 16:00:15 +00:00
Stanislav Shwartsman
a20adc8263
Update README
2007-09-10 15:27:10 +00:00
Stanislav Shwartsman
faa83f520e
added homepage of para-bochs project
2007-09-10 15:26:46 +00:00
Stanislav Shwartsman
31fa25bdbd
Some changes and updates for new release - I would like to compile it with x86-64 + acpi
2007-09-10 15:21:05 +00:00
Stanislav Shwartsman
7ae653d09c
Added missed param to BX_INFO
2007-09-10 15:10:39 +00:00
Volker Ruppert
674fbc24ab
- compare disk size with the size calculated from geometry to avoid image
...
corruption (if "mode" is not specified and image is not "flat")
- some message fixes
2007-09-07 10:54:19 +00:00
Volker Ruppert
267d15fc31
- fixed redolog->open() call for z-undoable image type (compressed-hd support
...
still incomplete)
2007-09-04 07:56:09 +00:00
Volker Ruppert
4b599a018a
- tftp_send_optack() was not 64-bit clean (patch from SF bug #1787500 )
2007-09-04 07:45:31 +00:00
Stanislav Shwartsman
d6f6dfac3f
Fixed typos
2007-09-02 13:01:19 +00:00
Stanislav Shwartsman
016660698e
just code cleanup, preparation for future
2007-08-31 18:09:34 +00:00
Stanislav Shwartsman
bf93a10543
Update CHANGES
2007-08-30 21:10:42 +00:00
Stanislav Shwartsman
14e3dcca08
patch for ACPI header - ability to have different rev number for different ACPI tables
2007-08-30 21:05:22 +00:00
Stanislav Shwartsman
5ac1bb6646
rewrite page fault
2007-08-30 16:48:10 +00:00
Alexander Krisak
03ad91ab25
Fixed Windows compilation
2007-08-25 13:11:53 +00:00
Stanislav Shwartsman
b64fc08c54
implement prefetch hint opcodes
2007-08-23 16:47:51 +00:00
Volker Ruppert
8f00ef6907
- evaluate_media() now returns 1 only if the media is valid (total number of
...
sectors > 0) to avoid division by zero error
2007-08-21 14:18:16 +00:00
Volker Ruppert
04d6440551
- clear out RSDT memory on init (patch by Bernhard Kauer from the ML)
2007-08-19 07:51:31 +00:00
Stanislav Shwartsman
4555cc9be3
ud2b opcode should have modrm byte
2007-08-18 13:51:16 +00:00
Volker Ruppert
a2584bd271
- attempt to fix the "Print Screen" key problem
...
* partial fix for bug #1549873 (SF patch #1766536 )
* added keyword "print" to the userbutton shortcut table
* FIXME #1 : CTRL+PRINT and ALT+PRINT not working in Win98 guest
* FIXME #2 : win32 hosts do not generate the "make" code for "Print Screen"
2007-08-18 08:05:33 +00:00
Volker Ruppert
63f1d0d07e
- now using platform specific code to determine the image size on WIN32 (fstat
...
on Cygwin and MinGW/MSYS returns only 32-bit values)
2007-08-10 17:34:01 +00:00
Stanislav Shwartsman
752ab9c4ae
Woraround for large files problem I used to install Vista
...
When it PANICs with 8G large disk image file - just press continue and it will work
2007-08-09 14:04:51 +00:00
Volker Ruppert
455e86cbb0
- CL-GD5446 rev. B claims 32 MB PCI memory for VRAM
...
- fixed and simplified PCI memory access
2007-08-05 10:46:23 +00:00
Volker Ruppert
6606627f4b
- fixed harddisk signature (drive select bit must be cleared for devices not
...
implementing the PACKET command)
2007-08-04 17:01:04 +00:00
Volker Ruppert
5563a18956
- ported ACPI enable/disable support from latest Qemu sources
2007-08-04 08:57:42 +00:00
Volker Ruppert
1332f905ae
- change ACPI table revision number to 1
2007-08-03 13:56:52 +00:00
Volker Ruppert
6ea536f95c
- fixed floppy boot signature check switch
...
- added network boot ROM support in the main Bochs code (already present in BIOS)
2007-08-01 17:10:24 +00:00
Stanislav Shwartsman
895891b673
Implemented #AC check under configure option
...
Fixes in misaligned SSE support
2007-07-31 20:25:52 +00:00
Stanislav Shwartsman
c8b3ad52c4
Fixed compilation error reported in mailing list
2007-07-31 19:03:38 +00:00
Stanislav Shwartsman
6a67c6d6dd
update CHANGES
2007-07-29 20:05:23 +00:00
Volker Ruppert
46a4544dd2
- Win98SE uses 0x21FF for mass storage device reset (pointed out Ben Lunt)
2007-07-28 16:11:17 +00:00
Stanislav Shwartsman
58a2595bca
Misaligned SSE support
2007-07-15 19:03:39 +00:00
Stanislav Shwartsman
38d1f39c77
Converted CR0 bits to one register similar to CR4 - a bit slower but helps with other features implemntation
2007-07-09 15:16:14 +00:00
Stanislav Shwartsman
8014e4061b
Patch from mailing list
2007-07-09 14:57:33 +00:00
Volker Ruppert
1ce5222640
- applied SF patch #1695652 by Duane Voth
...
* dumps vnet traffic to a .pcap file for use with wireshark et. al.
* sets the default PXE boot filename to pxelinux.0
* fills out the TFTP implementation far enough to use an etherboot rom
2007-07-01 07:28:14 +00:00
Volker Ruppert
feb2f45a3e
- added expansion-ROM boot support to the ROMBIOS (SF patch #1741153 ported from
...
the XenSource project)
2007-06-30 07:15:30 +00:00
Volker Ruppert
8f7e6ac2ad
- implemented INT15h, fn 0xC2 (mouse), subfn 3, set resolution (SF patch #1734159 )
...
- support for large PCI memory regions (>=64Mb) added (patch by Paul Brook)
2007-06-17 07:38:58 +00:00
Volker Ruppert
fd0ca2b479
- support for large PCI memory regions (>=64Mb) added (patch by Paul Brook)
2007-06-17 07:37:11 +00:00
Volker Ruppert
216fdf36c6
- implemented INT15h, fn 0xC2 (mouse), subfn 3, set resolution (SF patch #1734159 )
2007-06-17 07:36:34 +00:00
Stanislav Shwartsman
7c6c2bb520
Removed PANIC message
2007-06-08 09:25:30 +00:00
Volker Ruppert
570ce953a6
*** empty log message ***
2007-05-28 08:09:13 +00:00
Volker Ruppert
45bd4ab269
- bios_printf() fix for %s format (from VirtualBox)
...
- removed lots of trailing spaces
2007-05-28 08:01:56 +00:00
Volker Ruppert
3dad77a4b5
- bios_printf() fix for %s format (from VirtualBox)
...
- removed lots of trailing spaces
2007-05-28 07:54:03 +00:00
Volker Ruppert
171f2433f0
- install both default and legacy version of the Bochs BIOS
...
- updated the BIOS related parts of the documentation
2007-05-17 15:47:35 +00:00
Stanislav Shwartsman
593f9d5f36
Fixed typo
2007-05-15 12:48:59 +00:00
Stanislav Shwartsman
5e97ddb984
Use GDT and IDTR limit in 'info gdt/idt commands
2007-05-12 19:19:15 +00:00
Volker Ruppert
e88a8b48a1
- implementation of save/restore for the SCSI emulation started
...
- SCSI buffer length fixes ported from the Qemu project
2007-05-05 12:30:23 +00:00
Stanislav Shwartsman
65a99eb736
Change BX_ERROR to BX_DEBUG
2007-04-25 20:14:15 +00:00
Volker Ruppert
25ebf16236
- exclude statements must appear prior to the file list (expected by tar 1.15.1)
2007-04-22 17:11:12 +00:00
Stanislav Shwartsman
55365ba713
Minimize usage of result register
2007-04-19 19:09:52 +00:00
Stanislav Shwartsman
1c3e703394
Fixed DAZ handling by CVT instructions
2007-04-19 18:50:57 +00:00
Stanislav Shwartsman
5189cfbf10
SSE4 support
2007-04-19 16:12:21 +00:00
Stanislav Shwartsman
f6af99dead
Some variables renaming + CPU vendor variable defition
2007-04-17 21:38:51 +00:00
Volker Ruppert
70d7a37c55
- prepared after_restore_state() feature for USB devices
...
- init_device(): removed local variable 'connected'
2007-04-15 09:39:22 +00:00
Stanislav Shwartsman
6c139a9c8c
Define LIN and PHY address size in config.h
2007-04-14 10:05:30 +00:00
Stanislav Shwartsman
3886e35bcb
Clean code duplication
2007-04-09 21:55:07 +00:00
Stanislav Shwartsman
09360212ad
Update CHANGES
2007-04-09 21:32:29 +00:00
Stanislav Shwartsman
223b9fda0e
Fixed RIP relative mode when in 32-bit address size
2007-04-09 21:15:00 +00:00
Stanislav Shwartsman
e26609fa97
Support for Intel LSS/LFS/LGS in 64-bit mode
...
TODO: have both AMD and Intelk versions
2007-04-09 20:28:15 +00:00
Volker Ruppert
bb27085003
- partial save/restore support for USB MSD devices (TODO: buffers and SCSI
...
emulation status not saved)
- changed type of member 'mode' to simplify save/restore
2007-04-09 09:04:54 +00:00
Volker Ruppert
98acd5ef2e
- regenerated after moving --enabled-new-pit to the deprecated section
2007-04-09 08:48:23 +00:00
Volker Ruppert
2a6200040e
- removed configure option for the new PIT model from documentation and perl
...
build script
- added --enable-new-pit to the deprecated section of the configure script
- show DEPRECATED messages in configure script in uppercase letters (most of
them should be removed before the next major release)
2007-04-09 08:46:24 +00:00
Stanislav Shwartsman
dee9f1b9b5
Update MSDEV workspace
2007-04-08 21:58:00 +00:00
Stanislav Shwartsman
b6c8275cfd
remove old PIT model and always use Greg Alexander's new one
2007-04-08 21:57:06 +00:00