diff mbox series

plugins/core: add missing break in cb_to_tcg_flags

Message ID 20200105072940.32204-1-cota@braap.org (mailing list archive)
State New, archived
Headers show
Series plugins/core: add missing break in cb_to_tcg_flags | expand

Commit Message

Emilio Cota Jan. 5, 2020, 7:29 a.m. UTC
Reported-by: Robert Henry <robhenry@microsoft.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 plugins/core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Henderson Jan. 5, 2020, 9:08 p.m. UTC | #1
On 1/5/20 5:29 PM, Emilio G. Cota wrote:
> Reported-by: Robert Henry <robhenry@microsoft.com>
> Signed-off-by: Emilio G. Cota <cota@braap.org>
> ---
>  plugins/core.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~
Alex Bennée Feb. 5, 2020, 5:22 p.m. UTC | #2
Emilio G. Cota <cota@braap.org> writes:

> Reported-by: Robert Henry <robhenry@microsoft.com>
> Signed-off-by: Emilio G. Cota <cota@braap.org>


Queued to plugins/next, thanks.

> ---
>  plugins/core.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/plugins/core.c b/plugins/core.c
> index 9e1b9e7a91..ed863011ba 100644
> --- a/plugins/core.c
> +++ b/plugins/core.c
> @@ -286,6 +286,7 @@ static inline uint32_t cb_to_tcg_flags(enum qemu_plugin_cb_flags flags)
>      switch (flags) {
>      case QEMU_PLUGIN_CB_RW_REGS:
>          ret = 0;
> +        break;
>      case QEMU_PLUGIN_CB_R_REGS:
>          ret = TCG_CALL_NO_WG;
>          break;
diff mbox series

Patch

diff --git a/plugins/core.c b/plugins/core.c
index 9e1b9e7a91..ed863011ba 100644
--- a/plugins/core.c
+++ b/plugins/core.c
@@ -286,6 +286,7 @@  static inline uint32_t cb_to_tcg_flags(enum qemu_plugin_cb_flags flags)
     switch (flags) {
     case QEMU_PLUGIN_CB_RW_REGS:
         ret = 0;
+        break;
     case QEMU_PLUGIN_CB_R_REGS:
         ret = TCG_CALL_NO_WG;
         break;