Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
play
Commits
241e7a98
Commit
241e7a98
authored
Jun 23, 2018
by
Jean-Philip Desjardins
Browse files
Remove useless check/optimisation.
parent
822342a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/MipsExecutor.h
View file @
241e7a98
...
@@ -197,16 +197,11 @@ public:
...
@@ -197,16 +197,11 @@ public:
int
Execute
(
int
cycles
)
int
Execute
(
int
cycles
)
{
{
assert
(
TranslateFunction
==
m_context
.
m_pAddrTranslator
);
assert
(
TranslateFunction
==
m_context
.
m_pAddrTranslator
);
auto
block
=
m_emptyBlock
.
get
();
m_context
.
m_State
.
cycleQuota
=
cycles
;
m_context
.
m_State
.
cycleQuota
=
cycles
;
while
(
m_context
.
m_State
.
nHasException
==
0
)
while
(
m_context
.
m_State
.
nHasException
==
0
)
{
{
uint32
address
=
TranslateFunction
(
&
m_context
,
m_context
.
m_State
.
nPC
);
uint32
address
=
TranslateFunction
(
&
m_context
,
m_context
.
m_State
.
nPC
);
if
(
address
!=
block
->
GetBeginAddress
())
auto
block
=
m_blockLookup
.
FindBlockAt
(
address
);
{
block
=
FindBlockStartingAt
(
address
);
}
#ifdef DEBUGGER_INCLUDED
#ifdef DEBUGGER_INCLUDED
if
(
!
m_breakpointsDisabledOnce
&&
MustBreak
())
break
;
if
(
!
m_breakpointsDisabledOnce
&&
MustBreak
())
break
;
m_breakpointsDisabledOnce
=
false
;
m_breakpointsDisabledOnce
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment