tcg/i386: rdpmc: use the the condtions
PATCH 1/1 tcg/i386: rdpmc: use the the condtions
--- target/i386/tcg/misc_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target/i386/tcg/misc_helper.c +2 -1
@@ -222,7 +222,8 @@ void helper_rdtscp(CPUX86State *env)void helper_rdpmc (CPUX86State *env) { -if ((env->cr[4 ] &CR4_PCE_MASK ) && ((env->hflags &HF_CPL_MASK ) !=0 )) { +if (((env->cr[4 ] &CR4_PCE_MASK ) ==0 ) && + ((env->hflags &HF_CPL_MASK ) !=0 )) {raise_exception_ra (env,EXCP0D_GPF ,GETPC ()); }cpu_svm_check_intercept_param (env,SVM_EXIT_RDPMC ,0 ,GETPC ());
Signature · 1 line
2.27.0
Paolo Bonzini
AppliedQuoted 11 lines · Zheng Zhan Liang
Signed-off-by Zheng Zhan Liang <[email protected]>--- target/i386/tcg/misc_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)target/i386/tcg/misc_helper.c +0
-0
target/i386/tcg/misc_helper.c void helper_rdtscp(CPUX86State *env) · line 229
Quoted 9 lines
target/i386/tcg/misc_helper.c +2
-1@@ -222,7 +222,8 @@ void helper_rdtscp(CPUX86State *env)void helper_rdpmc (CPUX86State *env) { -if ((env->cr[4 ] &CR4_PCE_MASK ) && ((env->hflags &HF_CPL_MASK ) !=0 )) { +if (((env->cr[4 ] &CR4_PCE_MASK ) ==0 ) && + ((env->hflags &HF_CPL_MASK ) !=0 )) {raise_exception_ra (env,EXCP0D_GPF ,GETPC ()); }cpu_svm_check_intercept_param (env,SVM_EXIT_RDPMC ,0 ,GETPC ());
Queued, thanks.
Paolo
Hi Paolo,
Quoted 16 lines · Paolo Bonzini
Quoted 15 lines · Zheng Zhan Liang
Signed-off-by Zheng Zhan Liang <[email protected]>---
target/i386/tcg/misc_helper.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)target/i386/tcg/misc_helper.c +0
-1@@ -222,7 +222,8 @@ void helper_rdtscp(CPUX86State *env) void helper_rdpmc(CPUX86State *env) { - if ((env->cr[4] & CR4_PCE_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) {
Quoted 8 lines
target/i386/tcg/misc_helper.c void helper_rdtscp(CPUX86State *env) · line 229
Quoted 6 lines
target/i386/tcg/misc_helper.c +2
-0+ if (((env->cr[4] & CR4_PCE_MASK) == 0 ) && + ((env->hflags & HF_CPL_MASK) != 0)) { raise_exception_ra(env, EXCP0D_GPF, GETPC()); } cpu_svm_check_intercept_param(env, SVM_EXIT_RDPMC, 0, GETPC());Queued, thanks.
Do you mind fixing the patch subject?
Quoted 28 lines · Philippe Mathieu-Daudé
Hi Paolo,
Quoted 16 lines · Paolo Bonzini
Quoted 15 lines · Zheng Zhan Liang
Signed-off-by Zheng Zhan Liang <[email protected]>--- target/i386/tcg/misc_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)target/i386/tcg/misc_helper.c +0
-1@@ -222,7 +222,8 @@ void helper_rdtscp(CPUX86State *env) void helper_rdpmc(CPUX86State *env) { - if ((env->cr[4] & CR4_PCE_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) {Quoted 8 lines
target/i386/tcg/misc_helper.c void helper_rdtscp(CPUX86State *env) · line 229
Quoted 6 lines
target/i386/tcg/misc_helper.c +2
-0+ if (((env->cr[4] & CR4_PCE_MASK) == 0 ) && + ((env->hflags & HF_CPL_MASK) != 0)) { raise_exception_ra(env, EXCP0D_GPF, GETPC()); } cpu_svm_check_intercept_param(env, SVM_EXIT_RDPMC, 0, GETPC());Queued, thanks.
Quoted 1 line
Do you mind fixing the patch subject?
Yes, done already actually. Thanks,
Paolo
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [PATCH] tcg/i386: rdpmc: use the the condtions
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
895b8e7 tcg/i386: rdpmc: use the the condtions
=== OUTPUT BEGIN ===
ERROR: space prohibited before that close parenthesis ')' #22: FILE: target/i386/tcg/misc_helper.c:225:
+ if (((env->cr[4] & CR4_PCE_MASK) == 0 ) &&
total: 1 errors, 0 warnings, 9 lines checked
Commit 895b8e71e307 (tcg/i386: rdpmc: use the the condtions) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]