Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
18475360
Commit
18475360
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
xscale_reg_t -> struct xscale_reg
Remove misleading typedef and redundant suffix from struct xscale_reg.
parent
1f87cf4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/target/xscale.c
View file @
18475360
...
...
@@ -106,7 +106,7 @@ static char *const xscale_reg_list[] =
"XSCALE_TXRXCTRL"
,
};
static
const
xscale_reg
_t
xscale_reg_arch_info
[]
=
static
const
struct
xscale_reg
xscale_reg_arch_info
[]
=
{
{
XSCALE_MAINID
,
NULL
},
{
XSCALE_CACHETYPE
,
NULL
},
...
...
@@ -2365,7 +2365,7 @@ static int xscale_remove_watchpoint(struct target_s *target, struct watchpoint *
static
int
xscale_get_reg
(
reg_t
*
reg
)
{
xscale_reg
_t
*
arch_info
=
reg
->
arch_info
;
struct
xscale_reg
*
arch_info
=
reg
->
arch_info
;
target_t
*
target
=
arch_info
->
target
;
struct
xscale_common
*
xscale
=
target_to_xscale
(
target
);
...
...
@@ -2410,7 +2410,7 @@ static int xscale_get_reg(reg_t *reg)
static
int
xscale_set_reg
(
reg_t
*
reg
,
uint8_t
*
buf
)
{
xscale_reg
_t
*
arch_info
=
reg
->
arch_info
;
struct
xscale_reg
*
arch_info
=
reg
->
arch_info
;
target_t
*
target
=
arch_info
->
target
;
struct
xscale_common
*
xscale
=
target_to_xscale
(
target
);
uint32_t
value
=
buf_get_u32
(
buf
,
0
,
32
);
...
...
@@ -2456,7 +2456,7 @@ static int xscale_write_dcsr_sw(target_t *target, uint32_t value)
{
struct
xscale_common
*
xscale
=
target_to_xscale
(
target
);
reg_t
*
dcsr
=
&
xscale
->
reg_cache
->
reg_list
[
XSCALE_DCSR
];
xscale_reg
_t
*
dcsr_arch_info
=
dcsr
->
arch_info
;
struct
xscale_reg
*
dcsr_arch_info
=
dcsr
->
arch_info
;
/* send CP write request (command 0x41) */
xscale_send_u32
(
target
,
0x41
);
...
...
@@ -2822,9 +2822,9 @@ static void xscale_build_reg_cache(target_t *target)
struct
xscale_common
*
xscale
=
target_to_xscale
(
target
);
struct
armv4_5_common_s
*
armv4_5
=
&
xscale
->
armv4_5_common
;
struct
reg_cache
**
cache_p
=
register_get_last_cache_p
(
&
target
->
reg_cache
);
xscale_reg
_t
*
arch_info
=
malloc
(
sizeof
(
xscale_reg_arch_info
));
struct
xscale_reg
*
arch_info
=
malloc
(
sizeof
(
xscale_reg_arch_info
));
int
i
;
int
num_regs
=
sizeof
(
xscale_reg_arch_info
)
/
sizeof
(
xscale_reg
_t
);
int
num_regs
=
sizeof
(
xscale_reg_arch_info
)
/
sizeof
(
struct
xscale_reg
);
(
*
cache_p
)
=
armv4_5_build_reg_cache
(
target
,
armv4_5
);
armv4_5
->
core_cache
=
(
*
cache_p
);
...
...
src/target/xscale.h
View file @
18475360
...
...
@@ -138,11 +138,11 @@ target_to_xscale(struct target_s *target)
armv4_5_common
);
}
typedef
struct
xscale_reg
_s
struct
xscale_reg
{
int
dbg_handler_number
;
target_t
*
target
;
}
xscale_reg_t
;
};
enum
{
...
...
Write
Preview
Supports
Markdown
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