Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
c7336200
There was an error fetching the commit references. Please try again later.
Commit
c7336200
authored
1 year ago
by
Narr the Reg
Browse files
Options
Downloads
Patches
Plain Diff
service: ipc: Add third read buffer index
parent
b1909b04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/service/hle_ipc.cpp
+6
-0
6 additions, 0 deletions
src/core/hle/service/hle_ipc.cpp
with
6 additions
and
0 deletions
src/core/hle/service/hle_ipc.cpp
+
6
−
0
View file @
c7336200
...
...
@@ -27,10 +27,12 @@ namespace {
static
thread_local
std
::
array
read_buffer_data_a
{
Common
::
ScratchBuffer
<
u8
>
(),
Common
::
ScratchBuffer
<
u8
>
(),
Common
::
ScratchBuffer
<
u8
>
(),
};
static
thread_local
std
::
array
read_buffer_data_x
{
Common
::
ScratchBuffer
<
u8
>
(),
Common
::
ScratchBuffer
<
u8
>
(),
Common
::
ScratchBuffer
<
u8
>
(),
};
}
// Anonymous namespace
...
...
@@ -343,6 +345,7 @@ std::span<const u8> HLERequestContext::ReadBufferA(std::size_t buffer_index) con
static
thread_local
std
::
array
read_buffer_a
{
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
};
ASSERT_OR_EXECUTE_MSG
(
...
...
@@ -358,6 +361,7 @@ std::span<const u8> HLERequestContext::ReadBufferX(std::size_t buffer_index) con
static
thread_local
std
::
array
read_buffer_x
{
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
};
ASSERT_OR_EXECUTE_MSG
(
...
...
@@ -373,10 +377,12 @@ std::span<const u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) cons
static
thread_local
std
::
array
read_buffer_a
{
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
};
static
thread_local
std
::
array
read_buffer_x
{
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
Core
::
Memory
::
CpuGuestMemory
<
u8
,
Core
::
Memory
::
GuestMemoryFlags
::
SafeRead
>
(
memory
,
0
,
0
),
};
const
bool
is_buffer_a
{
BufferDescriptorA
().
size
()
>
buffer_index
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment