From 601d70b9e5dea95a3854ba801672786f40230b75 Mon Sep 17 00:00:00 2001 From: balrog Date: Sun, 20 Apr 2008 01:03:45 +0000 Subject: [PATCH] Remove an unused field and fix some non-code typos. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4222 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/twl92230.c | 1 - target-arm/helper.c | 6 +++--- target-arm/translate.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/twl92230.c b/hw/twl92230.c index a9f4faf..8d0ce5d 100644 --- a/hw/twl92230.c +++ b/hw/twl92230.c @@ -62,7 +62,6 @@ struct menelaus_s { int sec_offset; int alm_sec; int next_comp; - struct tm *(*gettime)(const time_t *timep, struct tm *result); } rtc; qemu_irq handler[3]; qemu_irq *in; diff --git a/target-arm/helper.c b/target-arm/helper.c index 30700e2..5d70ef1 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -737,7 +737,7 @@ void do_interrupt(CPUARMState *env) new_mode = ARM_CPU_MODE_SVC; addr = 0x08; mask = CPSR_I; - /* The PC already points to the next instructon. */ + /* The PC already points to the next instruction. */ offset = 0; break; case EXCP_BKPT: @@ -870,7 +870,7 @@ static int get_phys_addr_v5(CPUState *env, uint32_t address, int access_type, type = (desc & 3); domain = (env->cp15.c3 >> ((desc >> 4) & 0x1e)) & 3; if (type == 0) { - /* Secton translation fault. */ + /* Section translation fault. */ code = 5; goto do_fault; } @@ -961,7 +961,7 @@ static int get_phys_addr_v6(CPUState *env, uint32_t address, int access_type, desc = ldl_phys(table); type = (desc & 3); if (type == 0) { - /* Secton translation fault. */ + /* Section translation fault. */ code = 5; domain = 0; goto do_fault; diff --git a/target-arm/translate.c b/target-arm/translate.c index e849b7f..59158b3 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -2877,7 +2877,7 @@ static int disas_vfp_insn(CPUState * env, DisasContext *s, uint32_t insn) tmp = load_cpu_field(vfp.xregs[rn]); break; case ARM_VFP_FPSCR: - if (rd == 15) { + if (rd == 15) { tmp = load_cpu_field(vfp.xregs[ARM_VFP_FPSCR]); tcg_gen_andi_i32(tmp, tmp, 0xf0000000); } else { @@ -6887,7 +6887,7 @@ static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1) if (!(arm_feature(env, ARM_FEATURE_THUMB2) || arm_feature (env, ARM_FEATURE_M))) { - /* Thumb-1 cores may need to tread bl and blx as a pair of + /* Thumb-1 cores may need to treat bl and blx as a pair of 16-bit instructions to get correct prefetch abort behavior. */ insn = insn_hw1; if ((insn & (1 << 12)) == 0) { -- 1.7.9.5