Dr. Chat
dbc2d233fb
(for now) Stub X64Context out on non-AMD64 platforms
2017-05-09 20:53:25 -05:00
Dr. Chat
bb3291e331
Add generic memory swap routines.
2017-05-09 20:52:09 -05:00
Dr. Chat
6dcbee18da
Whoops - fix linux builds.
2017-05-08 22:26:48 -05:00
Dr. Chat
095f65c19e
(maybe) Proper POSIX memory allocation support
2017-05-07 19:52:15 -05:00
Dr. Chat
e26aa6c189
Add XE_ARCH_*
2017-05-07 18:25:06 -05:00
DrChat
e699be0118
Logging: Add a flag to specify the minimum log level
...
--log_level = (0=error, 1=warning, 2=info, 3=debug)
2017-03-24 16:28:41 -05:00
Dr. Chat
d8ed251ad1
Tests: Handle integer floating point numbers
2017-03-06 01:04:59 -06:00
Dr. Chat
ea89a5d179
JIT - fctixx: Properly handle numbers > INT_MAX
2017-03-05 15:04:26 -06:00
Dr. Chat
2bd19478a4
Logger: Properly handle cases where strlen(formatted string) > capacity of log_format_buffer_ (as well as error cases)
2017-02-25 20:03:25 -06:00
Dr. Chat
2acee08590
Base bitfield class
2017-02-19 19:58:58 -06:00
DrChat
6d4b06c08f
Use stdout as logfile for tests
2017-02-11 00:15:52 -06:00
DrChat
26456280f1
Travis: print error log on command failure
2017-02-11 00:02:15 -06:00
DrChat
d43e2c7ff8
xenia-cpu-ppc-tests is now building on linux
2017-02-10 23:54:10 -06:00
Dr. Chat
bf7f170825
Fix string_util.h include on linux
2017-02-05 22:01:50 -06:00
Dr. Chat
7fb31462e4
Logger: Use platform-agnostic aligned alloc
2017-02-05 20:39:46 -06:00
Dr. Chat
65ca7fc416
Lockless logging
2017-02-04 19:26:39 -06:00
Dr. Chat
8c79051a94
Vulkan: Add basic one-frame cache to BufferCache
2017-01-29 00:24:31 -06:00
gibbed
69cf40161e
Added support for '?' to FS wildcard handling.
2017-01-19 18:13:07 -06:00
gibbed
17529b063f
Spliced out the FS wildcard stuff.
2017-01-19 17:06:35 -06:00
Dr. Chat
06588f8703
Fix xe::CreateParentFolder improperly handling separators on Windows
2017-01-14 15:19:43 -06:00
gibbed
ac7dce758b
Fixed xe::filesystem::DeleteFolder on Windows. Should fix some issues where games tried to overwrite existing content such as saves and was failing.
2017-01-09 17:05:05 -06:00
Dr. Chat
fe2c887c34
Math tzcnt
2016-11-04 19:17:12 -05:00
Dr. Chat
fbedb915b6
Move definition of XEPACKEDSTRUCT to platform.h
2016-08-22 17:23:50 -05:00
gibbed
23b72e4888
Complain loudly when ReadFile() returns ERROR_NOACCESS.
2016-06-18 18:26:23 -05:00
Dr. Chat
841f6fe239
Merge branch 'vulkan'
2016-06-11 19:23:23 -05:00
Haydn Trigg
ff5529714c
clang-format to Google Standards
...
Added formatting to code
2016-05-29 13:22:14 +09:30
Haydn Trigg
f2ca689ea0
Expanded vec128 and VectorSub
...
Added double precision (f64) values to the vec128 structure
Added cases for all formats of data for vector subtraction in the
Value::VectorSub function
NOTE: Unsure what the saturate function is for however maintained
original functionality
2016-05-17 05:34:09 +09:30
Ben Vanik
cd02cdfc70
Making memory API less error prone; fixes buffer/constant uploads.
2016-02-20 19:19:29 -08:00
Ben Vanik
4c4a641096
WIP rough sketch of vulkan backend structure.
2016-02-18 16:43:41 -08:00
Ben Vanik
618ca80011
Count packed bytes used by a constant map.
2016-02-18 16:43:41 -08:00
Dr. Chat
4335e41c14
Decouple MicroProfileFlip from Profiler::Present (and start a new frame in XE_SWAP)
2016-02-07 19:25:30 -06:00
Dr. Chat
6a67632af1
Update RingBuffer - Add immediate read/write and some error checking asserts.
2016-01-24 22:39:05 -06:00
sephiroth99
f17b80c61e
Use stdlib 'hardware_concurrency' to get logical processor count
...
This has the benifit of being multiplatform.
2016-01-20 11:04:28 -05:00
sephiroth99
d78317847d
Fix link error when profiling is disabled
...
These four functions are needed by microprofile even when profiling
is disabled.
2016-01-20 09:35:27 -05:00
Ben Vanik
6777ce6668
Reconcile debugger and save state stuff into a single implementation.
...
Fixes #497 and fixes #496 .
Still rough edges, but at least less duplication.
2016-01-18 11:48:21 -08:00
Dr. Chat
4b7a403337
xe::be<uint64_t> visualizers
2016-01-13 01:30:46 -06:00
Dr. Chat
0cf6e166a1
vec128 bitwise operators
2016-01-13 01:29:47 -06:00
Ben Vanik
1b487b67c9
Why travis doesn't have aligned_alloc but my other two unixes do, ?.
2016-01-01 13:08:15 -08:00
Ben Vanik
09aa3179fb
Adding cstdlib to memory.h.
2016-01-01 20:59:52 +00:00
Ben Vanik
c93b93fe55
Standardizing wchar->char in main().
2016-01-01 12:46:26 -08:00
Ben Vanik
c4ca7ad2ae
Fixing builds when profiling is disabled.
2016-01-01 04:51:02 +00:00
Ben Vanik
a95be25e2f
Merge branch 'linuxfix' of https://github.com/sephiroth99/xenia into sephiroth99-linuxfix
2015-12-31 14:39:23 -08:00
Ben Vanik
952d35911c
Folding build_tools back into the main repo for simplicity.
2015-12-30 16:53:14 -08:00
sephiroth99
d982b54bda
byte_stream: Remove template specialization in class scope
2015-12-30 17:42:18 -05:00
sephiroth99
a743c12e72
byte_stream: add missing include for memcpy
2015-12-30 17:42:18 -05:00
sephiroth99
fa953fe758
bit_map: Add missing include for size_t definition
2015-12-30 17:42:18 -05:00
sephiroth99
fc04ca040f
Fix building with profiling disabled
2015-12-30 17:42:18 -05:00
Ben Vanik
76ed07cfff
Adding back FILE_FLAG_BACKUP_SEMANTICS.
2015-12-30 09:19:54 -08:00
Ben Vanik
948aa2400d
Formatting all code. Too gnarly to rebase properly.
2015-12-29 13:13:34 -08:00
Dr. Chat
6108ff1608
Use a 64-bit bitmap rather than a 32-bit bitmap.
2015-12-29 13:10:02 -08:00
Dr. Chat
d4da8cab4e
BitMap: Change the size param to the number of entries (bits)
2015-12-29 13:09:59 -08:00
Dr. Chat
c5ac4185ac
Threadsafe bitmap class
2015-12-29 13:09:58 -08:00
Dr. Chat
08663fd745
Non-const ByteStream::data()
2015-12-29 13:09:55 -08:00
Dr. Chat
44c9e8fe25
Save/Restore the guest clock in XThreads
2015-12-29 13:09:47 -08:00
Dr. Chat
5f79d8f97e
Fix RingBuffer::EndRead not detecting a split read (where second length == 0)
2015-12-29 13:09:45 -08:00
Dr. Chat
3678a22c90
Use TLS to store the current thread.
2015-12-29 13:09:24 -08:00
Dr. Chat
0b5def1ff6
MappedMemory: Support opening empty files (and extending them) / remapping files / Truncate on close
2015-12-29 13:09:21 -08:00
Dr. Chat
62351a62de
filesystem::CreateFile
2015-12-29 12:35:55 -08:00
Dr. Chat
938d849c06
ByteStream class
2015-12-29 12:32:50 -08:00
Dr. Chat
42c657c40a
Remove processor dependency on XThread for breakpoints
2015-12-29 12:32:47 -08:00
Ben Vanik
5019f1aa98
Possible fix for failing to create files.
2015-12-29 11:02:28 -08:00
Ben Vanik
cc72de0f64
Moving disasm to new tables.
...
Also adding useful CPU docs.
2015-12-28 20:49:22 -08:00
Ben Vanik
5de82887fa
Adding build version information to main window/log.
2015-12-27 11:53:37 -08:00
Ben Vanik
0a316808a5
Include order fixes.
2015-12-27 10:27:46 -08:00
Ben Vanik
0e58208add
Dropping elemental-forms and swapping out with imgui.
...
Too much code for such little use. This should simplify porting.
2015-12-26 20:25:24 -08:00
Ben Vanik
7419e7eb4a
Trace dump tool, for dumping pngs (and in the future more stuff).
2015-12-13 11:59:14 -08:00
Ben Vanik
52f339cee4
Removing bogus assert.
2015-12-05 23:24:17 -08:00
Ben Vanik
00240945fe
Cleanup for the latest clang-format version.
2015-12-03 19:52:02 -08:00
Ben Vanik
249b952de9
Adding some comments.
2015-12-02 17:37:48 -08:00
Ben Vanik
65130edaa1
First pass ShaderTranslator base type, able to disasm in msft style.
2015-11-28 16:19:04 -08:00
Ben Vanik
1956b8708e
Fixing include orders and whitelisting others.
...
Will be broken until clang SVN 253772 is available on travis/snapshots.
2015-11-21 11:34:46 -08:00
Ben Vanik
93708c0c1c
xe::format_string utility.
2015-11-09 11:13:34 -08:00
Ben Vanik
4af6c41740
Moving profiling.h to base - UI could be separated for cleanliness.
2015-11-07 12:31:07 -08:00
Ben Vanik
65c5279611
Fixing style.
2015-11-05 16:39:27 -08:00
Dr. Chat
88be0a362c
memory::QueryProtect
2015-10-22 20:16:27 -05:00
Ben Vanik
64b8dcfd99
Lint fixes.
2015-10-17 09:30:28 -07:00
sephiroth99
7fb4fd2790
More workarounds for __m128.
2015-09-22 07:44:04 -07:00
sephiroth99
e1d569dd7c
Fix usage of __m128.
...
With GCC and clang, __m128 is not a struct, so there are no struct members
to access the individual items in the vector.
Use standard load/store function and some hackery to workaround this
limitation.
2015-09-22 07:41:28 -07:00
sephiroth99
ff7c755bc9
memory: AlignedAlloc: fallback to aligned_alloc()
...
When compiling with clang++, __STDC_VERSION__ is not defined (obviously
as clang++ is not a C compiler). Because of this, check if compiling
with MSVC and fallback to the Linux implementation. If the latter is not
supported, compilation will fail, as it previously would have with the
2015-09-22 07:39:06 -07:00
Ben Vanik
83f3d520b2
Add missing header includes.
2015-09-22 07:38:59 -07:00
Ben Vanik
5d033f9cb3
A new debugger.
...
Lots of bugs/rough edges/etc - issues will be filed.
Old-style debugging still works (just use --emit_source_annotations to get
the helpful movs back and --break_on_instruction will still fire).
2015-09-20 21:31:05 -07:00
Dr. Chat
2983b0c090
Update some documentation.
2015-09-11 17:12:49 -05:00
Dr. Chat
8e716a3a7e
Exception handler abstraction class
2015-09-11 17:07:12 -05:00
Ben Vanik
e5fbf840d2
Shuffling kernel/.
2015-09-06 18:07:52 -07:00
Ben Vanik
0133bec11d
Fix empty line logging.
2015-09-06 13:34:19 -07:00
Ben Vanik
790ce8aee1
Switch back to std:: muteces. mutices. mutexen.
2015-09-06 13:34:08 -07:00
Ben Vanik
e48c3534cc
Removing copy to temp buffer in log flush.
2015-09-06 10:28:17 -07:00
Ben Vanik
3c96b6fa0a
DANGER DANGER. Switching to global critical region.
...
This changes almost all locks held by guest threads to use a single global
critical region. This emulates the behavior on the PPC of disabling
interrupts (by calls like KeRaiseIrqlToDpcLevel or masking interrupts),
and prevents deadlocks from occuring when threads are suspended or
otherwise blocked.
This has performance implications and a pass is needed to ensure the
locking is as granular as possible. It could also break everything
because it's fundamentally unsound. We'll see.
2015-09-06 09:30:54 -07:00
Ben Vanik
499e8b4b5b
ScaleGuestDurationFileTime for absolute times. Probably right.
...
Fixes #409 .
2015-08-30 15:40:10 -07:00
Ben Vanik
7f505a15b7
Fixing timer callbacks.
2015-08-29 23:42:40 -07:00
Ben Vanik
1d7f345960
Fix logging with null varargs.
2015-08-29 22:22:07 -07:00
Ben Vanik
a86b3821f2
Adding thread handle to logging.
2015-08-29 20:49:26 -07:00
Dr. Chat
f80e5fc98d
Linting
2015-08-29 22:21:25 -05:00
Dr. Chat
3d684ac304
Fixup the premake files
2015-08-29 22:04:12 -05:00
Dr. Chat
6c83b35003
Partial frame support.
2015-08-29 21:42:06 -05:00
Dr. Chat
f2b2a22687
Add gflags to projects that need it only
2015-08-29 21:16:57 -05:00
Ben Vanik
b7203c2989
Logging to with a ringbuffer. Much faster.
2015-08-29 18:06:30 -07:00
Ben Vanik
3c50b6739a
Capturing guest/host context and showing registers in debugger.
2015-08-29 08:08:54 -07:00
Ben Vanik
ab04175aad
Abstracting aligned alloc/free.
2015-08-28 14:27:44 -07:00
Ben Vanik
8b0d4fb51c
Linux tweaks.
2015-08-18 14:18:00 -07:00