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
a251721b
There was an error fetching the commit references. Please try again later.
Commit
a251721b
authored
9 years ago
by
Yuri Kunde Schlesner
Browse files
Options
Downloads
Patches
Plain Diff
Memmap: Remove unused declarations
parent
9f503387
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/mem_map.h
+0
-9
0 additions, 9 deletions
src/core/mem_map.h
src/core/mem_map_funcs.cpp
+3
-11
3 additions, 11 deletions
src/core/mem_map_funcs.cpp
with
3 additions
and
20 deletions
src/core/mem_map.h
+
0
−
9
View file @
a251721b
...
...
@@ -134,20 +134,11 @@ extern u8* g_tls_mem; ///< TLS memory
void
Init
();
void
Shutdown
();
template
<
typename
T
>
inline
void
Read
(
T
&
var
,
VAddr
addr
);
template
<
typename
T
>
inline
void
Write
(
VAddr
addr
,
T
data
);
u8
Read8
(
VAddr
addr
);
u16
Read16
(
VAddr
addr
);
u32
Read32
(
VAddr
addr
);
u64
Read64
(
VAddr
addr
);
u32
Read8_ZX
(
VAddr
addr
);
u32
Read16_ZX
(
VAddr
addr
);
void
Write8
(
VAddr
addr
,
u8
data
);
void
Write16
(
VAddr
addr
,
u16
data
);
void
Write32
(
VAddr
addr
,
u32
data
);
...
...
This diff is collapsed.
Click to expand it.
src/core/mem_map_funcs.cpp
+
3
−
11
View file @
a251721b
...
...
@@ -225,27 +225,19 @@ u8 Read8(const VAddr addr) {
u16
Read16
(
const
VAddr
addr
)
{
u16_le
data
=
0
;
Read
<
u16_le
>
(
data
,
addr
);
return
(
u16
)
data
;
return
data
;
}
u32
Read32
(
const
VAddr
addr
)
{
u32_le
data
=
0
;
Read
<
u32_le
>
(
data
,
addr
);
return
(
u32
)
data
;
return
data
;
}
u64
Read64
(
const
VAddr
addr
)
{
u64_le
data
=
0
;
Read
<
u64_le
>
(
data
,
addr
);
return
(
u64
)
data
;
}
u32
Read8_ZX
(
const
VAddr
addr
)
{
return
(
u32
)
Read8
(
addr
);
}
u32
Read16_ZX
(
const
VAddr
addr
)
{
return
(
u32
)
Read16
(
addr
);
return
data
;
}
void
Write8
(
const
VAddr
addr
,
const
u8
data
)
{
...
...
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