[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 03/11] target-mips: improve exceptions handli
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH v5 03/11] target-mips: improve exceptions handling |
Date: |
Mon, 6 Jul 2015 12:23:02 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On 2015-07-06 11:25, Pavel Dovgalyuk wrote:
> This patch improves exception handling in MIPS.
> Instructions generate several types of exceptions.
> When exception is generated, it breaks the execution of the current
> translation
> block. Implementation of the exceptions handling does not correctly
> restore icount for the instruction which caused the exception. In most cases
> icount will be decreased by the value equal to the size of TB.
> This patch passes pointer to the translation block internals to the exception
> handler. It allows correct restoring of the icount value.
>
> v3 changes:
> This patch stops translation when instruction which always generates exception
> is translated. This improves the performance of the patched version compared
> to original one.
>
> Signed-off-by: Pavel Dovgalyuk <address@hidden>
> ---
> target-mips/cpu.h | 23 +++
> target-mips/helper.h | 1
> target-mips/msa_helper.c | 158 +++++++++++---------
> target-mips/op_helper.c | 169 ++++++++++-----------
> target-mips/translate.c | 363
> ++++++++++++++++++++++------------------------
> 5 files changed, 359 insertions(+), 355 deletions(-)
Reviewed-by: Aurelien Jarno <address@hidden>
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
address@hidden http://www.aurel32.net
- Re: [Qemu-devel] [PATCH v5 01/11] softmmu: add helper function to pass through retaddr, (continued)
- [Qemu-devel] [PATCH v5 02/11] cpu-exec: introduce loop exit with restore function, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 04/11] target-i386: introduce new raise_exception functions, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 05/11] target-i386: exception handling for FPU instructions, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 03/11] target-mips: improve exceptions handling, Pavel Dovgalyuk, 2015/07/06
- Re: [Qemu-devel] [PATCH v5 03/11] target-mips: improve exceptions handling,
Aurelien Jarno <=
- [Qemu-devel] [PATCH v5 06/11] target-i386: exception handling for div instructions, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 07/11] target-i386: exception handling for memory helpers, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 09/11] target-i386: exception handling for other helper functions, Pavel Dovgalyuk, 2015/07/06
- [Qemu-devel] [PATCH v5 08/11] target-i386: exception handling for seg_helper functions, Pavel Dovgalyuk, 2015/07/06