head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.58 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.56 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.54 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.52 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.50 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.48 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.46 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.44 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.42 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.40 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.38 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.36 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.34 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.32 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.30 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.28 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.26 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.24 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.22 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.20 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.18 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.16 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.14 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.12 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.8 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.10 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.6 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.4 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.2 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.1.0.30 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.28 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.26 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.24 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.22 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.20 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.16 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.14 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.12 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.10 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.8 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.6 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.4 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.2 pkgsrc-2015Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2019.01.13.11.59.38; author ryoon; state Exp; branches; next 1.1; commitid 3DbnhdRVYcy0kC7B; 1.1 date 2015.07.01.13.39.17; author ryoon; state Exp; branches; next ; commitid AlZTSzdL6ya1pAry; desc @@ 1.2 log @Update to 2.6.9 Changelog: Changes in 2.6.9 (April 9, 2017): Brief summary : - CPU: implemented new instructions and x86 architecture extensions. - Bugfixes for CPU emulation correctness. - Added Android host platform support. - Added USB EHCI device emulation support. - Added USB floppy (UFI/CBI) support. - Added ethernet module 'socket', designed to interconnect Bochs instances. - Show textconfig at runtime in the Bochs VGA window (gui console). Detailed change log : - General - Added new log action "warn", designed to show a message box on error events. - Show message box before exit if log action is set to "fatal". - Added macro BX_FATAL for all cases when continuing is not recommended, since it can cause an application crash or incorrect simulation behaviour. - Configure and compile - Added Android host platform support. - Configure script now prints warnings for features not maintained yet. - GUI and display libraries - Show the runtime configuration in the Bochs VGA window (gui console) instead of console / xterm (rfb, sdl, sdl2, vncsrv and X11 guis). - SDL2: Added get/set clipboard text support. - CPU / CPUDB - Bugfixes for CPU emulation correctness (critical bugfix for x86-64 and AVX opcodes emulation, fixed assertion failures in proc_ctrl.cc) ! VMX: Implemented Page Modification Logging (PML) ! VMX: Implemented TSC Scaling Extension ! Paging: Implemented Protection Keys ! Implemented UMIP: User Mode Instruction Prevention (don't allow execution of SLDT/SIDT/SGDT/STR/SMSW with CPL>0) ! Implemented RDPID instruction ! Implemented VPOPCNTD/VPOPCNTQ AVX512 instructions ! Implemented XSAVES/XRSTORS instructions and IA32_XSS MSR ! Implemented Translation Cache Extensions (TCE) for AMD CPUID and EFER.TCE control ! Implemented CLZERO instruction (AMD), enabled in Ryzen CPU model ! Implemented MONITORX/MWAITX instructions (AMD), enabled in Ryzen CPU model ! CPUDB: Added AMD Ryzen configuration to CPUDB - I/O Devices - Busmouse - Added standard bus mouse support in addition to the existing InPort emulation code. (patch by Ben Lunt). - Hard drive - Implemented lock mechanism for hard disk images. An image that is opened in r/w mode cannot be used multiple times (e.g. by another Bochs session). - Several fixes in some disk image modes. - Serial / Parallel ports - Added support for changing output file at runtime. - Networking - Added ethernet module 'socket', designed to interconnect Bochs instances with external program 'bxhub' (simulating a multi-port ethernet hub). - Now creating separate plugins for each network driver implementation (slirp, win32, etc.). - Sound - Added PCM output data resampling in a separate thread. The resampler requires either libsamplerate or the SoX resampler library installed. - SDL: Added audio capture support (requires library version >= 2.0.5). - Now creating separate plugins for each sound driver (alsa, win, etc.). - USB - Added USB EHCI device emulation support (EHCI core ported from Qemu). - Added USB floppy (UFI/CBI) support (patch by Ben Lunt). - Added asynchronus USB packet completion support (needed by disk/cdrom seek and read/write latency emulation). - Implemented USB remote wakeup mechanism. - Fixed NAK response handling in all USB HCs. - USB printer: added support for changing output file at runtime. - Added common USB device option "debug" to turn on BX_DEBUG reporting at connection time. - ROM BIOS - Implemented Bochs BIOS option "fastboot" for skipping the boot menu delay. @ text @$NetBSD: patch-iodev_network_slirp_compat_cc,v 1.1 2015/07/01 13:39:17 ryoon Exp $ (At least NetBSD/amd64 7.99.1 has following problem) slirp/compat.cc:141:40: error: 'WIFEXITED' was not declared in this scope slirp/compat.cc:144:35: error: 'WEXITSTATUS' was not declared in this scope --- iodev/network/slirp/compat.cc.orig 2016-08-12 17:06:14.000000000 +0000 +++ iodev/network/slirp/compat.cc @@@@ -35,6 +35,10 @@@@ # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif +#ifdef __NetBSD__ +# include "sys/wait.h" +#endif + #if BX_NETWORKING && BX_NETMOD_SLIRP void pstrcpy(char *buf, int buf_size, const char *str) @ 1.1 log @Update 2.6.2 to 2.6.8 --------------------- Changes in 2.6.8 (May 3, 2015): - CPU / CPUDB - Bugfixes for CPU emulation correctness (critical bugfix for x86-64 emulation) - Memory type calculation support for Bochs debugger and instrumentation, to enable configure with --enable-memtype option. - CPUDB: Added Pentium (P54C) configuration to CPUDB - CPUDB: Added Broadwell ULT configuration to CPUDB - Updated definition of instrumentation callbacks, see description in instrumentation.txt / Fixed instrumentation examples - Configure and compile - Configure option --enable-fast-function-calls now also used for MSVC nmake. - Some configure fixes for the GTK debugger support. - GUI and display libraries - The VGA update timer mode now can be selected with the 'vga' option. - Release all pressed keys when the simwindow gets back the keyboard focus. - Win32 gui: Captured mouse cursor now really trapped in window. - SDL2: Implemented yes/no dialog (e.g. for VVFAT commit). - Some fixes for wxWidgets 3.0 and unicode version compatiblity. - Full save/restore support for enhanced gui debugger settings (window+font). - Added debugger support for the term gui using a pseudo-terminal. - I/O Devices - Hard drive - Added Oracle(tm) VM VirtualBox image support (VDI version 1.1) - Re-enable "bulk I/O" repeat speedups extension. - Some lowlevel cdrom code fixes for Windows and Linux. - Sound - SB16: Fixed OPL chip detection by implementing ISA bus delay. - SB16: Ported OPL3 emulation from DOSBox and partly removed legacy code. - ES1370: Added MIDI UART output support. - ES1370: Fixed critical bug that made Win9x drivers crash. - Major rewrite of the lowlevel sound code. - Added mixer thread support (required for all modules except 'sdl'). - New mixer and SDL mixer are polling data from the PCM output buffers, the PC speaker beep generator and the OPL3 FM generator. - PCM format conversion to 16 bit signed little endian. - Added sound 'file' module for VOC, WAV, MID and raw data output and added dual output support (device+file) in midi/wave mode 3. - Added capability to set up the sound driver per service. - Floppy - Fixed "Read ID" command for single-sided media (patch by Ben Lunt). - ROM BIOS - Fixed keyboard scancode processing after keyboard intercept. - Fixed rombios32 code to avoid incorrect ACPI table detection. ------------------------------------------------------------------------- Changes in 2.6.7 (November 2, 2014): - CPU / CPUDB - Implemented AVX-512BW/AVX-512DQ/AVX-512VL extensions emulation. - implemented AVX512-IFMA532 instructions emulation. - implemented AVX512-VBMI instructions emulation. - Bugfixes for CPU emulation correctness (critical fixes for AVX-512, CMPXCHG16B and VMX) - Fixed Bochs segmentation fault crash with Handlers Chaining Speedups enabled when compiling with gcc, especially with low optimization levels. - Reverted removal of reporting Architectural Perfmon support in pre-defined CPUID modules. Windows 8 and Windows 10 require Performance Monitoring to be reported to boot. To workaround possible Windows 7 64-bit installation issues: use bx_generic CPUID module, which doesn't report Performance Monitoring in CPUID. - GUI and display libraries - The VGA update timer and the status LED timer now always use the realtime mode independent from the 'clock' option setting. - Added native SDL2 GUI support to Bochs. To enable configure with --with-sdl2. - Added new user shortcut "scrlck" (SDL/SDL2 using "Scroll Lock" for fullscreen toggle). - Write enhanced gui debugger settings to file on exit and restore on initialization. - I/O Devices - USB - xHCI model now emulates a NEC/Renesas uPD720202 device (patch by Ben Lunt). - Added USB port specific option 'size' for VVFAT disks (range 128M ... 128G). If the size is not specified or invalid, it defaults to 504M. - Hard drive / HD image - Fixed crash when using a "fixed" type VPC image. - ROM BIOS - Fixed int74_function() for 4-byte (wheel mouse) packets. - LGPL'd VGABIOS updated from CVS (fixed building VBE modes list) - Misc - Visual Studio workspace files updated to VS2013Ex format. - bximage_old/bxcommit: removed old obsolete image manipulation tools. - Documentation fixes and updates. ------------------------------------------------------------------------- Changes in 2.6.6 (June 15, 2014): - CPU / CPUDB - allow sandy bridge configuration even when AVX is not compiled in - Configure and compile - fixed compilation error when 3dnow support is enabled - speedup Visual Studio build by almost 20% by adding /Gr compiler option - Misc - fixed minimizing win32 gui window and resolution change while minimized - added compiled SeaBIOS 1.7.5 image into Bochs tree along with Bochs BIOS images - documentation fixes and updates ------------------------------------------------------------------------- Changes in 2.6.5 (June 1, 2014): Brief summary : - CPU: extra 5-10% emulation speedup with new trace linking optimization - CPU: implemented new instructions (e.g. AVX-512, SHA, XSAVEC) - CPUDB: added 2 new CPU models - Bugfixes for CPU emulation correctness (including some critical ones) - Gui debugger output window now can be used as a log viewer - Added built-in slirp (user-mode networking) support (ported from Qemu) - Added global sound config option and volume control support to the devices - Added new experimental gui 'vncsrv" using the LibVNCServer library - Rewrite of the bximage utility in C++ for image creation, conversion and resize Detailed change log : - CPU - Bugfixes for CPU emulation correctness (critical fixes for XSAVE, VMX, TBM/BMI and RDRAND instructions) - Implemented FCS/FDS Deprecation CPU feature - Implemented SHA instructions emulation - Implemented XSAVEC instruction emulation and XINUSE optimization in the XSAVEOPT instruction - Implemented AVX-512 instructions emulation (experimental) ! CPUDB: Added Intel(R) Core(TM) i7-4770 CPU (Haswell) configuration to CPUDB ! CPUDB: Added AMD A8-5600K APU (Trinity) configuration to CPUDB - Replace 'SSE' and 'AVX' .bochsrc option with single 'SIMD' option which controls presence of all CPU SIMD extensions from SSE to AVX-512 - Extra 5-10% emulation speedup with new trace linking optimization. The optimization is enabled by default when configuring with --enable-all-optimizations option, to disable trace linking optimization configure with --disable-trace-linking. The optimization require to compile Bochs with at least -O2 optimization level on gcc. - Bochs Debugger and Instrumentation - Added disam for Bochs internal instruction representation, especially useful for instrumentation - Updated definition of instrumentation callbacks, see description in instrumentation.txt / Fixed instrumentation examples - added capability to use the gui debugger output window as a log viewer - General - Increased max. device log prefix size to 6 and added / modified prefixes - plugin version now uses the native DLL handling code for all Windows ports - critical bugfixes in save/restore functionality - Configure and compile - configure and compilation fixes for Cygwin and Visual Studio environment - configure option --enable-cdrom now only controls the presence of platform-specific code for device access - building plugin version with MSVC nmake now supported - Config interface - Added global sound control option for the driver and wave input/output - Added new bochsrc option to control the speaker output mode - Added support to specify the initial time for 'clock' option in ctime(3) string format - Added support for the LTDL_LIBRARY_PATH variable with MSVC plugins - All SB16 / ES1370 options are now changeable at runtime - textconfig: added menu item for saving configuration at runtime - Added bochsrc option for the Voodoo Graphics emulation (experimental) - I/O Devices - Hard drive / CD-ROM - seek latency implemented for ATA/ATAPI read commands - portable ISO image file access now available on all platforms - Networking - added built-in slirp (user-mode networking) support (ported from Qemu) - removed the "slirp backend" support (required external slirp binary) - slirp/vnet: all supported TFTP extension options implemented now - Sound - SB16 / ES1370: added volume control support for wave output - SB16: fixed audio distortion when playing stereo wave files - ES1370: added 'wavemode' support similar to the SB16 - soundwin: added capability to specify the ID of the MIDI device to use - Serial - Serial mouse detection fixes - Busmouse - Non-functional device rewritten to make it work in DOS and Win95 guests (use --enable-busmouse to configure and "mouse: type=bus" at runtime) - ROM BIOS - PS/2 mouse function: allow setting mouse packet size to 4 for wheel support - GUI and display libraries - Added new experimental gui 'vncsrv" using the LibVNCServer library - RFB: set maximum resolution to 1280x1024 (same as vncsrv) - RFB: don't wait for client connection on startup if timeout is set to 0 - Added mouse wheel support to the rfb, vncsrv and wx guis - wx: added viewer window for the Bochs log output - win32: fixes and improvements for the fullscreen mode - Tools - bximage utility rewritten in C++ for image creation, conversion, resize and redolog commit. Now vmware4 and vpc images can be created. @ text @d1 1 a1 1 $NetBSD$ d7 5 a11 5 --- iodev/network/slirp/compat.cc~ 2014-04-19 02:14:32.000000000 +0900 +++ iodev/network/slirp/compat.cc 2014-12-12 01:01:35.000000000 +0900 @@@@ -27,6 +27,10 @@@@ #include "slirp.h" @