Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libtcg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton
libtcg
Commits
fd1dc858
Commit
fd1dc858
authored
14 years ago
by
Edgar E. Iglesias
Browse files
Options
Downloads
Patches
Plain Diff
microblaze: Make MSR_UM and MSR_VM part of the tb flags
Signed-off-by:
Edgar E. Iglesias
<
edgar.iglesias@petalogix.com
>
parent
7375c86f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target-microblaze/cpu.h
+3
-4
3 additions, 4 deletions
target-microblaze/cpu.h
with
3 additions
and
4 deletions
target-microblaze/cpu.h
+
3
−
4
View file @
fd1dc858
...
...
@@ -217,8 +217,7 @@ typedef struct CPUMBState {
#define DRTB_FLAG (1 << 18)
#define D_FLAG (1 << 19)
/* Bit in ESR. */
/* TB dependant CPUState. */
#define IFLAGS_TB_MASK (D_FLAG | IMM_FLAG | DRTI_FLAG \
| DRTE_FLAG | DRTB_FLAG | MSR_EE_FLAG)
#define IFLAGS_TB_MASK (D_FLAG | IMM_FLAG | DRTI_FLAG | DRTE_FLAG | DRTB_FLAG)
uint32_t
iflags
;
struct
{
...
...
@@ -323,8 +322,8 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
{
*
pc
=
env
->
sregs
[
SR_PC
];
*
cs_base
=
0
;
env
->
i
flags
|
=
env
->
sregs
[
SR_MSR
]
&
MSR_EE
;
*
flags
=
env
->
iflags
&
IFLAGS_TB_MASK
;
*
flags
=
(
env
->
iflags
&
IFLAGS_TB_MASK
)
|
(
env
->
sregs
[
SR_MSR
]
&
(
MSR_UM
|
MSR_VM
|
MSR_EE
))
;
}
#if !defined(CONFIG_USER_ONLY)
...
...
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