Commit Graph

30344 Commits

Author SHA1 Message Date
espes 4d9107e865 Merge branch 'fix-fifo' into xbox 2018-03-09 18:30:01 +01:00
espes c33f4ab25c cleanups 2018-03-09 18:23:39 +01:00
espes d3f83d93c7 cleanups 2018-03-09 18:03:03 +01:00
espes faca5dd0fe fix 2018-03-09 17:50:36 +01:00
espes 7c62d7c199 fixes 2018-03-09 02:20:57 +01:00
espes 8ad239b099 wip 2018-03-08 20:06:09 +01:00
espes 45ed3c31b4 wip 2018-03-06 17:30:03 +00:00
espes c006d5e878 wip 2018-03-06 17:30:03 +00:00
espes 2d97e837b9
Merge pull request #6 from LukeUsher/fix-build-on-new-perl
Fix compilation with perl > 5.22
2017-12-26 23:30:56 +10:00
Luke Usher 5f5703117b Fix compilation with perl > 5.22 2017-12-21 19:51:57 +00:00
espes 1d968aa47b Merge pull request #96 from JayFoxRox/no-catchall
Avoid switch-cases where default is silent assert
2017-05-28 22:52:33 +02:00
espes ca00a49331 Merge pull request #98 from JayFoxRox/quickfix
Fix: all lights used same shader var since 9fd88f53
2017-05-26 19:46:46 +02:00
Jannik Vogel 366c0bbb50 Fix: all lights used same shader var since 9fd88f53 2017-05-26 15:22:05 +02:00
espes 114c49a0d2 Merge pull request #97 from JayFoxRox/blit-fmt-4
Support blit surface format 0x4
2017-05-25 23:40:47 +02:00
Jannik Vogel 73339e8f6b Avoid switch-cases where default is silent assert 2017-05-25 21:13:22 +02:00
Jannik Vogel 75a0994ec1 Support blit surface format 0x4 2017-05-21 23:33:12 +02:00
Peter Maydell 5cf813119e configure: Always build with -fno-common
MacOSX doesn't pull .o files from .a archives if the symbol that it
requires is one which the .o file defines as a common symbol.
(Common symbols are those declared without "extern"; the linker
will merge together common symbols with the same name, so
redeclaring the same variable in two compilation units results in
them referring to the same symbol rather than a compilation error).

This MacOSX difference from traditional linker behaviour means that
"make check" produces link errors:

Undefined symbols for architecture x86_64:
  "_cur_mon", referenced from:
      _error_vprintf in libqemuutil.a(qemu-error.o)
      _error_printf in libqemuutil.a(qemu-error.o)
      _error_printf_unless_qmp in libqemuutil.a(qemu-error.o)
      _error_print_loc in libqemuutil.a(qemu-error.o)
      _error_report in libqemuutil.a(qemu-error.o)
ld: symbol(s) not found for architecture x86_64

in this case because "cur_mon" is a common symbol in
libqemustub.a(mon-set-error.o).

In QEMU we don't make any use at all of the common symbol
functionality, so we can avoid this problem entirely simply
by compiling with -fno-common. Enable this option for all
builds, not just MacOSX, so that if we ever inadvertently
introduce multiple definitions of some variable that will
be immediately spotted as a build error rather than only
breaking the MacOSX build.

Suggested-by:  Markus Armbruster <armbru@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1393451610-24617-1-git-send-email-peter.maydell@linaro.org
2017-05-15 09:42:09 -07:00
espes cb8a97ad4c stub chihiro usb devices 2017-01-08 06:45:56 -08:00
espes cd5825aa48 Merge pull request #67 from mborgerson/timer_fixes
Timer fixes
2016-08-11 01:54:24 -07:00
Matt Borgerson e3d643ea16 Fix the TSC at 733 MHz
The time stamp counter (accessed via `rdtsc`) may be used as a
performance counter in some titles. On the Xbox, the TSC runs
at a constant 733 MHz.
2016-08-04 00:12:59 -07:00
Matt Borgerson 81dd2188c4 Make the ACPI PM timer more hardware accurate
On the Xbox, the ACPI PM timer is a 32-bit counter which runs at 3.375
MHz. This timer may be sampled via the KeQueryPerformanceCounter and
KeQueryPerformanceFrequency kernel functions.
2016-08-04 00:12:58 -07:00
espes 635548482c missing semicolon for radial fog 2016-02-04 03:09:23 +10:00
espes 9162957bc6 kill object_method method numbering (finally) 2016-02-04 02:39:17 +10:00
espes 23f63243b5 use more named constants in nv2a_shaders.c 2016-02-04 02:18:44 +10:00
espes 5b9865885e ARRAYSIZE -> ARRAY_SIZE 2016-02-04 02:13:41 +10:00
espes 5b3513f1dc move nv2a registers into own file (finally!) 2016-02-04 02:11:08 +10:00
espes 9fd88f53f3 rework lighting constants to use internal context registers 2016-02-04 02:02:35 +10:00
espes dead1d9afc Revert "Use uniform buffer objects"
This reverts commit 4646ba9c48.
2016-02-02 19:04:56 +10:00
espes 1fef6b47ef Merge pull request #66 from mborgerson/networking
Add networking support
2016-01-17 22:39:33 +02:00
Matt Borgerson 24c056aeb8 Add networking support
This patch adds basic networking capabilities to XQEMU. Currently the
emulation is not exactly hardware-accurate, but is functional enough
for basic packet tx/rx with both the official Microsoft Xbox networking
libraries and NXDK networking libraries.
2016-01-17 13:31:36 -07:00
espes fced4f44c3 Merge pull request #65 from mborgerson/smc_reset_support
Support system resets via SMC.
2016-01-04 09:12:02 +02:00
Matt Borgerson a958ad0dbc Support system resets via SMC. 2016-01-03 23:57:21 -07:00
espes 20264b1df8 quick support for w buffers 2015-10-21 03:45:45 +11:00
espes 32a04b3f38 factor psh_translate args into PshState 2015-10-20 22:52:01 +11:00
espes f16f79a1bc xid: nak unless new input data 2015-10-19 18:31:31 +11:00
espes 78c77ce5dd emucr are a bunch of muppets 2015-10-19 18:30:49 +11:00
espes ad6aef5a66 nforce chipset seems to allow setting irq0-3 to level triggered 2015-10-19 18:24:45 +11:00
espes 32cba22156 i8259: in edge triggered mode apparently a training edge should cancel the interrupt
https://lists.gnu.org/archive/html/qemu-devel/2012-09/msg00411.html
2015-10-19 18:21:43 +11:00
espes d532051a8e usb hub: don't return an overrun when there's no new status 2015-10-19 17:38:38 +11:00
espes eac9d5d608 texture cache and hash size tweak 2015-10-18 02:40:58 +11:00
espes 4593c6053a mask out write combined bit in context surfaces offsets 2015-10-17 14:44:46 +11:00
espes 80b440414d PGRAPH_INTR_ERROR and not PGRAPH_INTR_NOTIFY is used for software method calls? 2015-10-17 01:59:04 +11:00
Jannik Vogel a0c76c5b5b Merge pull request #64 from JayFoxRox/forgotten-code
Fix alphakill and hopefully clip planes
2015-09-29 03:05:12 +02:00
Jannik Vogel db282fb310 Fix alphakill and hopefully clip planes 2015-09-29 02:59:51 +02:00
espes 1aa2869d95 Merge pull request #62 from apexad/game-hacks
Increase NV2A_MAX_BATCH_LENGTH to 131071
2015-09-16 02:46:07 +10:00
apexad 183e8a8705 Increase NV2A_MAX_BATCH_LENGTH to 131071 from 65535 2015-09-13 18:46:41 -07:00
espes ea3dc6517f Merge pull request #63 from JayFoxRox/texture-0x29-and-0x41
Texture format 0x28 (changed), 0x29 and 0x41
2015-09-14 06:07:27 +10:00
Jannik Vogel b1aca0bb85 Texture format 0x28 (changed), 0x29 and 0x41 2015-09-13 21:31:30 +02:00
espes b872235877 Merge pull request #47 from JayFoxRox/vp-fog
Unify VP/FFP and fog for VP
2015-09-11 14:44:48 +10:00
Jannik Vogel 97be3f5986 Set initial value of oFog.x to 1.0 2015-09-11 03:47:20 +02:00