Skip to contentSkip to conversation

target-i386:make breakpoint more cleaner

PATCH New li guang 1 participant 1 message Dec 7, 2012

lore
Share & tools
lore

li guang

author
#0 lore raw

v3 cover target-i386:make breakpoint more cleaner

try to make breakpoint related functions
more cleaner.
originally, these functions implicit use
0,1,2,3 as name of breakpoint, really
hard to understand, so name them readable,
and also refactor the statement to
check these types for clean reason.

v2 changes:
1. split 'breakpoint_enabled' into '{local,global}_enable'
2. add some braces for if statement

v3 change:
rework functions hw_local_breakpoint_enabled

 target-i386/cpu.h         |    22 ++--
 target-i386/helper.c      |    74 ++++++++++++++++++++--------------
 target-i386/machine.c     |    5  +-
 target-i386/misc_helper.c |    4  +-
 target-i386/seg_helper.c  |    6  ++--
 5 files changed, 77 insertions(+), 34 deletions(-)
Signature · 2 lines
regards!
li guang