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
Ben Vanik
a92566dfc5
More style.
2015-08-07 21:29:03 -07:00
Ben Vanik
5e08889d93
More style cleanup.
2015-08-06 20:17:01 -07:00
Ben Vanik
e6461f326c
Some xb style cleanup.
2015-08-05 22:06:20 -07:00
Ben Vanik
b0425f7ee2
Moving source map to Function.
2015-08-01 14:07:13 -07:00
Ben Vanik
cb701fcb7c
Latest linter.
2015-08-01 04:08:59 -07:00
Ben Vanik
b56b262116
Switching to python build script.
2015-07-31 23:48:24 -07:00
Ben Vanik
c67173fe36
Switching to real page sizes, not allocation granularity.
2015-07-29 20:28:06 -07:00
Ben Vanik
7ecc6362de
Debugger stuff. Lots of wasted work :/
2015-07-26 22:47:16 -07:00
Ben Vanik
8ce6765233
Fixing socket startup.
2015-07-25 12:25:15 -07:00
Dr. Chat
e7def962f3
Expose native thread id
2015-07-24 18:41:53 -05:00
Ben Vanik
d01abd4694
Starting debugger rework, adding base async socket, removing flatbuffers.
2015-07-22 00:01:36 -07:00
Ben Vanik
5bd7833e87
More clang fixes. xenia-kernel is clean.
2015-07-19 21:29:06 -07:00
Ben Vanik
12a29371e3
Clang fixes.
2015-07-19 18:32:48 -07:00
Ben Vanik
baa86fcd1b
Migrating xam UI to elemental-forms.
...
Fixes #345 .
2015-07-19 14:43:27 -07:00
Ben Vanik
edfa3f3fc0
Replacing the tick count timer with xplat abstraction (also better rate).
...
Fixes #346 .
2015-07-19 10:11:54 -07:00
Ben Vanik
e0eb85bbbc
Switching to premake. Probably with disasterous consequences.
2015-07-18 16:00:01 -07:00
Dr. Chat
7595df4876
We don't need to be the calling thread to set a thread name.
2015-07-17 19:50:04 -05:00
Ben Vanik
74d2df2004
libxenia-base can now compile with clang.
2015-07-15 23:02:04 -07:00
Ben Vanik
f520d3a2a4
Run with latest clang-format.
2015-07-15 22:44:30 -07:00
Ben Vanik
c3415e6332
Adding TLS abstraction.
2015-07-15 22:20:33 -07:00
Ben Vanik
8154d1dad6
Moving xe::Memory and code cache to abstracted APIs.
2015-07-15 22:10:05 -07:00
Ben Vanik
fefaa31cd8
Switching a few types to their platform-agnostic versions.
2015-07-15 22:09:19 -07:00