From 5d95176da1d3e75268d0c3bfeffc98ba6c87984b Mon Sep 17 00:00:00 2001 From: Stuart Brady Date: Sun, 3 May 2009 12:15:06 +0100 Subject: [PATCH] Fix typos in comments in exec.c This patch fixes several typos in comments in exec.c: longet -> longer recommanded -> recommended ajustments -> adjustments inconsistancies -> inconsistencies phsical -> physical positionned -> positioned succesfully -> successfully regon_offset -> region_offset and also: start_region -> start_addr Signed-off-by: Stuart Brady --- exec.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/exec.c b/exec.c index c649381..c5c9280 100644 --- a/exec.c +++ b/exec.c @@ -120,7 +120,7 @@ typedef struct RAMBlock { static RAMBlock *ram_blocks; /* TODO: When we implement (and use) ram deallocation (e.g. for hotplug) - then we can no longet assume contiguous ram offsets, and external uses + then we can no longer assume contiguous ram offsets, and external uses of this variable will break. */ ram_addr_t last_ram_offset; #endif @@ -398,7 +398,7 @@ static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, #define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024) #if defined(CONFIG_USER_ONLY) -/* Currently it is not recommanded to allocate big chunks of data in +/* Currently it is not recommended to allocate big chunks of data in user mode. It will change when a dedicated libc will be used */ #define USE_STATIC_CODE_GEN_BUFFER #endif @@ -420,7 +420,7 @@ static void code_gen_alloc(unsigned long tb_size) /* in user mode, phys_ram_size is not meaningful */ code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE; #else - /* XXX: needs ajustments */ + /* XXX: needs adjustments */ code_gen_buffer_size = (unsigned long)(ram_size / 4); #endif } @@ -1467,7 +1467,7 @@ void cpu_single_step(CPUState *env, int enabled) if (kvm_enabled()) kvm_update_guest_debug(env, 0); else { - /* must flush all the translated code to avoid inconsistancies */ + /* must flush all the translated code to avoid inconsistencies */ /* XXX: only flush what is necessary */ tb_flush(env); } @@ -2046,7 +2046,7 @@ int tlb_set_page_exec(CPUState *env, target_ulong vaddr, else iotlb |= IO_MEM_ROM; } else { - /* IO handlers are currently passed a phsical address. + /* IO handlers are currently passed a physical address. It would be nice to pass an offset from the base address of that region. This would avoid having to special case RAM, and avoid full address decoding in every device. @@ -2175,7 +2175,7 @@ int page_get_flags(target_ulong address) } /* modify the flags of a page and invalidate the code if - necessary. The flag PAGE_WRITE_ORG is positionned automatically + necessary. The flag PAGE_WRITE_ORG is positioned automatically depending on PAGE_WRITE */ void page_set_flags(target_ulong start, target_ulong end, int flags) { @@ -2242,7 +2242,7 @@ int page_check_range(target_ulong start, target_ulong len, int flags) } /* called from signal handler: invalidate the code and unprotect the - page. Return TRUE if the fault was succesfully handled. */ + page. Return TRUE if the fault was successfully handled. */ int page_unprotect(target_ulong address, unsigned long pc, void *puc) { unsigned int page_index, prot, pindex; @@ -2326,7 +2326,7 @@ static void *subpage_init (target_phys_addr_t base, ram_addr_t *phys, page size. If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an io memory page. The address used when calling the IO function is the offset from the start of the region, plus region_offset. Both - start_region and regon_offset are rounded down to a page boundary + start_addr and region_offset are rounded down to a page boundary before calculating this offset. This should not be a problem unless the low bits of start_addr and region_offset differ. */ void cpu_register_physical_memory_offset(target_phys_addr_t start_addr, -- 2.7.4