kvm: rename kvm/test/test/powerpc to kvm/test/powerpc
PATCH 1/1 kvm: rename kvm/test/test/powerpc to kvm/test/powerpc
To make the directory architecture match the file config file kvm/test/config-powerpc.mk.
--- kvm/test/powerpc/44x/tlbsx.S | 33 ++++++++++++++++++++++++++++ kvm/test/powerpc/44x/tlbwe.S | 27 +++++++++++++++++++++++ kvm/test/powerpc/44x/tlbwe_16KB.S | 35 +++++++++++++++++++++++++++++ kvm/test/powerpc/44x/tlbwe_hole.S | 27 +++++++++++++++++++++++ kvm/test/powerpc/cstart.S | 38 ++++++++++++++++++++++++++++++++ kvm/test/powerpc/exit.c | 23 +++++++++++++++++++ kvm/test/powerpc/helloworld.c | 27 +++++++++++++++++++++++ kvm/test/powerpc/io.S | 32 +++++++++++++++++++++++++++ kvm/test/powerpc/spin.S | 4 +++ kvm/test/powerpc/sprg.S | 7 ++++++ kvm/test/test/powerpc/44x/tlbsx.S | 33 ---------------------------- kvm/test/test/powerpc/44x/tlbwe.S | 27 ----------------------- kvm/test/test/powerpc/44x/tlbwe_16KB.S | 35 ----------------------------- kvm/test/test/powerpc/44x/tlbwe_hole.S | 27 ----------------------- kvm/test/test/powerpc/cstart.S | 38 -------------------------------- kvm/test/test/powerpc/exit.c | 23 ------------------- kvm/test/test/powerpc/helloworld.c | 27 ----------------------- kvm/test/test/powerpc/io.S | 32 --------------------------- kvm/test/test/powerpc/spin.S | 4 --- kvm/test/test/powerpc/sprg.S | 7 ------ 20 files changed, 253 insertions(+), 253 deletions(-) create mode 100644 kvm/test/powerpc/44x/tlbsx.S create mode 100644 kvm/test/powerpc/44x/tlbwe.S create mode 100644 kvm/test/powerpc/44x/tlbwe_16KB.S create mode 100644 kvm/test/powerpc/44x/tlbwe_hole.S create mode 100644 kvm/test/powerpc/cstart.S create mode 100644 kvm/test/powerpc/exit.c create mode 100644 kvm/test/powerpc/helloworld.c create mode 100644 kvm/test/powerpc/io.S create mode 100644 kvm/test/powerpc/spin.S create mode 100644 kvm/test/powerpc/sprg.S delete mode 100644 kvm/test/test/powerpc/44x/tlbsx.S delete mode 100644 kvm/test/test/powerpc/44x/tlbwe.S delete mode 100644 kvm/test/test/powerpc/44x/tlbwe_16KB.S delete mode 100644 kvm/test/test/powerpc/44x/tlbwe_hole.S delete mode 100644 kvm/test/test/powerpc/cstart.S delete mode 100644 kvm/test/test/powerpc/exit.c delete mode 100644 kvm/test/test/powerpc/helloworld.c delete mode 100644 kvm/test/test/powerpc/io.S delete mode 100644 kvm/test/test/powerpc/spin.S delete mode 100644 kvm/test/test/powerpc/sprg.S
kvm/test/powerpc/44x/tlbsx.S new file +33 -0
@@ -0,0 +1,33 @@ +#define SPRN_MMUCR 0x3b2 + +#define TLBWORD0 0x10000210 +#define TLBWORD1 0x10000000 +#define TLBWORD2 0x00000003 + +.global _start +_start: + li r4, 0 + mtspr SPRN_MMUCR, r4 + + li r3, 23 + + lis r4, TLBWORD0@h + ori r4, r4, TLBWORD0@l + tlbwe r4, r3, 0 + + lis r4, TLBWORD1@h + ori r4, r4, TLBWORD1@l + tlbwe r4, r3, 1 + + lis r4, TLBWORD2@h + ori r4, r4, TLBWORD2@l + tlbwe r4, r3, 2 + + lis r4, 0x1000 + tlbsx r5, r4, r0 + cmpwi r5, 23 + beq good + trap + +good: + b .
kvm/test/powerpc/44x/tlbwe.S new file +27 -0
@@ -0,0 +1,27 @@ +#define SPRN_MMUCR 0x3b2 + +/* Create a mapping at 4MB */ +#define TLBWORD0 0x00400210 +#define TLBWORD1 0x00400000 +#define TLBWORD2 0x00000003 + +.global _start +_start: + li r4, 0 + mtspr SPRN_MMUCR, r4 + + li r3, 23 + + lis r4, TLBWORD0@h + ori r4, r4, TLBWORD0@l + tlbwe r4, r3, 0 + + lis r4, TLBWORD1@h + ori r4, r4, TLBWORD1@l + tlbwe r4, r3, 1 + + lis r4, TLBWORD2@h + ori r4, r4, TLBWORD2@l + tlbwe r4, r3, 2 + + b .
kvm/test/powerpc/44x/tlbwe_16KB.S new file +35 -0
@@ -0,0 +1,35 @@ +#define SPRN_MMUCR 0x3b2 + +/* 16KB mapping at 4MB */ +#define TLBWORD0 0x00400220 +#define TLBWORD1 0x00400000 +#define TLBWORD2 0x00000003 + +.global _start +_start: + li r4, 0 + mtspr SPRN_MMUCR, r4 + + li r3, 5 + + lis r4, TLBWORD0@h + ori r4, r4, TLBWORD0@l + tlbwe r4, r3, 0 + + lis r4, TLBWORD1@h + ori r4, r4, TLBWORD1@l + tlbwe r4, r3, 1 + + lis r4, TLBWORD2@h + ori r4, r4, TLBWORD2@l + tlbwe r4, r3, 2 + + /* load from 4MB */ + lis r3, 0x0040 + lwz r4, 0(r3) + + /* load from 4MB+8KB */ + ori r3, r3, 0x2000 + lwz r4, 0(r3) + + b .
kvm/test/powerpc/44x/tlbwe_hole.S new file +27 -0
@@ -0,0 +1,27 @@ +#define SPRN_MMUCR 0x3b2 + +/* Try to map real address 1GB. */ +#define TLBWORD0 0x40000210 +#define TLBWORD1 0x40000000 +#define TLBWORD2 0x00000003 + +.global _start +_start: + li r4, 0 + mtspr SPRN_MMUCR, r4 + + li r3, 23 + + lis r4, TLBWORD0@h + ori r4, r4, TLBWORD0@l + tlbwe r4, r3, 0 + + lis r4, TLBWORD1@h + ori r4, r4, TLBWORD1@l + tlbwe r4, r3, 1 + + lis r4, TLBWORD2@h + ori r4, r4, TLBWORD2@l + tlbwe r4, r3, 2 + + b .
kvm/test/powerpc/cstart.S new file +38 -0
@@ -0,0 +1,38 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Copyright IBM Corp. 2008 + * + * Authors: Hollis Blanchard <[email protected]> + */ + +#define OUTPUT_VADDR 0xf0000000 +#define OUTPUT_PADDR 0xf0000000 + +.globl _start +_start: + /* In the future we might need to assign a stack and zero BSS here. */ + + /* Map the debug page 1:1. */ + lis r3, OUTPUT_VADDR@h + ori r3, r3, OUTPUT_VADDR@l + lis r4, OUTPUT_PADDR@h + ori r4, r4, OUTPUT_PADDR@l + bl map + + /* Call main() and pass return code to exit(). */ + bl main + bl exit + + b .
kvm/test/powerpc/exit.c new file +23 -0
@@ -0,0 +1,23 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License, version 2, as +* published by the Free Software Foundation; +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +* Copyright IBM Corp. 2008 +* +* Authors: Hollis Blanchard <[email protected]> +*/ + +int main (void ) +{ +return 1 ; +}
kvm/test/powerpc/helloworld.c new file +27 -0
@@ -0,0 +1,27 @@ +/* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License, version 2, as +* published by the Free Software Foundation; +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +* Copyright IBM Corp. 2008 +* +* Authors: Deepa Srinivasan <[email protected]> +*/ + +#include "libcflat.h" + +int main () +{ +printf ("Hello World\n" ); + +return 1 ; +}
kvm/test/powerpc/io.S new file +32 -0
@@ -0,0 +1,32 @@ +#define SPRN_MMUCR 0x3b2 + +#define TLBWORD0 0xf0000210 +#define TLBWORD1 0xf0000000 +#define TLBWORD2 0x00000003 + +.global _start +_start: + li r4, 0 + mtspr SPRN_MMUCR, r4 + + li r3, 2 + + lis r4, TLBWORD0@h + ori r4, r4, TLBWORD0@l + tlbwe r4, r3, 0 + + lis r4, TLBWORD1@h + ori r4, r4, TLBWORD1@l + tlbwe r4, r3, 1 + + lis r4, TLBWORD2@h + ori r4, r4, TLBWORD2@l + tlbwe r4, r3, 2 + + lis r3, 0xf000 + lis r4, 0x1234 + ori r4, r4, 0x5678 + stb r4, 0(r3) + lbz r5, 0(r3) + + b .
kvm/test/powerpc/spin.S new file +4 -0
@@ -0,0 +1,4 @@ + +.global _start +_start: + b .
kvm/test/powerpc/sprg.S new file +7 -0
@@ -0,0 +1,7 @@ + +.global _start +_start: + li r3, 42 + mtsprg 0, r3 + mfsprg r4, 0 + b .
kvm/test/test/powerpc/44x/tlbsx.S deleted +0 -33
@@ -1,33 +0,0 @@ -#define SPRN_MMUCR 0x3b2 - -#define TLBWORD0 0x10000210 -#define TLBWORD1 0x10000000 -#define TLBWORD2 0x00000003 - -.global _start -_start: - li r4, 0 - mtspr SPRN_MMUCR, r4 - - li r3, 23 - - lis r4, TLBWORD0@h - ori r4, r4, TLBWORD0@l - tlbwe r4, r3, 0 - - lis r4, TLBWORD1@h - ori r4, r4, TLBWORD1@l - tlbwe r4, r3, 1 - - lis r4, TLBWORD2@h - ori r4, r4, TLBWORD2@l - tlbwe r4, r3, 2 - - lis r4, 0x1000 - tlbsx r5, r4, r0 - cmpwi r5, 23 - beq good - trap - -good: - b .
kvm/test/test/powerpc/44x/tlbwe.S deleted +0 -27
@@ -1,27 +0,0 @@ -#define SPRN_MMUCR 0x3b2 - -/* Create a mapping at 4MB */ -#define TLBWORD0 0x00400210 -#define TLBWORD1 0x00400000 -#define TLBWORD2 0x00000003 - -.global _start -_start: - li r4, 0 - mtspr SPRN_MMUCR, r4 - - li r3, 23 - - lis r4, TLBWORD0@h - ori r4, r4, TLBWORD0@l - tlbwe r4, r3, 0 - - lis r4, TLBWORD1@h - ori r4, r4, TLBWORD1@l - tlbwe r4, r3, 1 - - lis r4, TLBWORD2@h - ori r4, r4, TLBWORD2@l - tlbwe r4, r3, 2 - - b .
kvm/test/test/powerpc/44x/tlbwe_16KB.S deleted +0 -35
@@ -1,35 +0,0 @@ -#define SPRN_MMUCR 0x3b2 - -/* 16KB mapping at 4MB */ -#define TLBWORD0 0x00400220 -#define TLBWORD1 0x00400000 -#define TLBWORD2 0x00000003 - -.global _start -_start: - li r4, 0 - mtspr SPRN_MMUCR, r4 - - li r3, 5 - - lis r4, TLBWORD0@h - ori r4, r4, TLBWORD0@l - tlbwe r4, r3, 0 - - lis r4, TLBWORD1@h - ori r4, r4, TLBWORD1@l - tlbwe r4, r3, 1 - - lis r4, TLBWORD2@h - ori r4, r4, TLBWORD2@l - tlbwe r4, r3, 2 - - /* load from 4MB */ - lis r3, 0x0040 - lwz r4, 0(r3) - - /* load from 4MB+8KB */ - ori r3, r3, 0x2000 - lwz r4, 0(r3) - - b .
kvm/test/test/powerpc/44x/tlbwe_hole.S deleted +0 -27
@@ -1,27 +0,0 @@ -#define SPRN_MMUCR 0x3b2 - -/* Try to map real address 1GB. */ -#define TLBWORD0 0x40000210 -#define TLBWORD1 0x40000000 -#define TLBWORD2 0x00000003 - -.global _start -_start: - li r4, 0 - mtspr SPRN_MMUCR, r4 - - li r3, 23 - - lis r4, TLBWORD0@h - ori r4, r4, TLBWORD0@l - tlbwe r4, r3, 0 - - lis r4, TLBWORD1@h - ori r4, r4, TLBWORD1@l - tlbwe r4, r3, 1 - - lis r4, TLBWORD2@h - ori r4, r4, TLBWORD2@l - tlbwe r4, r3, 2 - - b .
kvm/test/test/powerpc/cstart.S deleted +0 -38
@@ -1,38 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright IBM Corp. 2008 - * - * Authors: Hollis Blanchard <[email protected]> - */ - -#define OUTPUT_VADDR 0xf0000000 -#define OUTPUT_PADDR 0xf0000000 - -.globl _start -_start: - /* In the future we might need to assign a stack and zero BSS here. */ - - /* Map the debug page 1:1. */ - lis r3, OUTPUT_VADDR@h - ori r3, r3, OUTPUT_VADDR@l - lis r4, OUTPUT_PADDR@h - ori r4, r4, OUTPUT_PADDR@l - bl map - - /* Call main() and pass return code to exit(). */ - bl main - bl exit - - b .
kvm/test/test/powerpc/exit.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License, version 2, as -* published by the Free Software Foundation; -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -* -* Copyright IBM Corp. 2008 -* -* Authors: Hollis Blanchard <[email protected]> -*/ - -int main (void ) -{ -return 1 ; -}
kvm/test/test/powerpc/helloworld.c deleted +0 -27
@@ -1,27 +0,0 @@ -/* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License, version 2, as -* published by the Free Software Foundation; -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -* -* Copyright IBM Corp. 2008 -* -* Authors: Deepa Srinivasan <[email protected]> -*/ - -#include "libcflat.h" - -int main () -{ -printf ("Hello World\n" ); - -return 1 ; -}
kvm/test/test/powerpc/io.S deleted +0 -32
@@ -1,32 +0,0 @@ -#define SPRN_MMUCR 0x3b2 - -#define TLBWORD0 0xf0000210 -#define TLBWORD1 0xf0000000 -#define TLBWORD2 0x00000003 - -.global _start -_start: - li r4, 0 - mtspr SPRN_MMUCR, r4 - - li r3, 2 - - lis r4, TLBWORD0@h - ori r4, r4, TLBWORD0@l - tlbwe r4, r3, 0 - - lis r4, TLBWORD1@h - ori r4, r4, TLBWORD1@l - tlbwe r4, r3, 1 - - lis r4, TLBWORD2@h - ori r4, r4, TLBWORD2@l - tlbwe r4, r3, 2 - - lis r3, 0xf000 - lis r4, 0x1234 - ori r4, r4, 0x5678 - stb r4, 0(r3) - lbz r5, 0(r3) - - b .
kvm/test/test/powerpc/spin.S deleted +0 -4
@@ -1,4 +0,0 @@ - -.global _start -_start: - b .
kvm/test/test/powerpc/sprg.S deleted +0 -7
@@ -1,7 +0,0 @@ - -.global _start -_start: - li r3, 42 - mtsprg 0, r3 - mfsprg r4, 0 - b .
Quoted 4 lines · Ken CC
To make the directory architecture match the file config file
kvm/test/config-powerpc.mk.
Can you please resent with 'diff.renames' set in your git configuration? That will make the patch reviewable, as it will convert it to a pattern of moves instead of creates/deletes.
Also, isn't a Makefile change needed?
Signature · 1 line
error compiling committee.c: too many arguments to function
PATCH v2 1/1 kvm: rename kvm/test/test/powerpc to kvm/test/powerpc
To make the directory architecture match the make config file kvm/test/config-powerpc.mk.
---
kvm/test/{ => }/test/powerpc/44x/tlbsx.S | 0
kvm/test/{ => }/test/powerpc/44x/tlbwe.S | 0
kvm/test/{ => }/test/powerpc/44x/tlbwe_16KB.S | 0
kvm/test/{ => }/test/powerpc/44x/tlbwe_hole.S | 0
kvm/test/{ => }/test/powerpc/cstart.S | 0
kvm/test/{ => }/test/powerpc/exit.c | 0
kvm/test/{ => }/test/powerpc/helloworld.c | 0
kvm/test/{ => }/test/powerpc/io.S | 0
kvm/test/{ => }/test/powerpc/spin.S | 0
kvm/test/{ => }/test/powerpc/sprg.S | 0
10 files changed, 0 insertions(+), 0 deletions(-)
rename kvm/test/{ => }/test/powerpc/44x/tlbsx.S (100%)
rename kvm/test/{ => }/test/powerpc/44x/tlbwe.S (100%)
rename kvm/test/{ => }/test/powerpc/44x/tlbwe_16KB.S (100%)
rename kvm/test/{ => }/test/powerpc/44x/tlbwe_hole.S (100%)
rename kvm/test/{ => }/test/powerpc/cstart.S (100%)
rename kvm/test/{ => }/test/powerpc/exit.c (100%)
rename kvm/test/{ => }/test/powerpc/helloworld.c (100%)
rename kvm/test/{ => }/test/powerpc/io.S (100%)
rename kvm/test/{ => }/test/powerpc/spin.S (100%)
rename kvm/test/{ => }/test/powerpc/sprg.S (100%)kvm/test/powerpc/44x/tlbsx.S renamed from kvm/test/test/powerpc/44x/tlbsx.S +0 -0
kvm/test/powerpc/44x/tlbwe.S renamed from kvm/test/test/powerpc/44x/tlbwe.S +0 -0
kvm/test/powerpc/44x/tlbwe_16KB.S renamed from kvm/test/test/powerpc/44x/tlbwe_16KB.S +0 -0
kvm/test/powerpc/44x/tlbwe_hole.S renamed from kvm/test/test/powerpc/44x/tlbwe_hole.S +0 -0
kvm/test/powerpc/cstart.S renamed from kvm/test/test/powerpc/cstart.S +0 -0
kvm/test/powerpc/exit.c renamed from kvm/test/test/powerpc/exit.c +0 -0
kvm/test/powerpc/helloworld.c renamed from kvm/test/test/powerpc/helloworld.c +0 -0
kvm/test/powerpc/io.S renamed from kvm/test/test/powerpc/io.S +0 -0
kvm/test/powerpc/spin.S renamed from kvm/test/test/powerpc/spin.S +0 -0
kvm/test/powerpc/sprg.S renamed from kvm/test/test/powerpc/sprg.S +0 -0
Signature · 1 line
1.6.5.2
Quoted 9 lines · Avi Kivity
Quoted 3 lines · Ken CC
To make the directory architecture match the file config file
kvm/test/config-powerpc.mk.Can you please resent with 'diff.renames' set in your git configuration? That will make the patch reviewable, as it will convert it to a pattern of moves instead of creates/deletes.
Hi, Avi,
I have resent the patch, please check.
Quoted 2 lines
Also, isn't a
Makefilechange needed?
the content of config-powerpc.mak shares the same directory structure with that of config-x86-common.mak, so i think it is not needed to change Makefile while moving "powerpc" out of the "test" dir.
Regards,
Ken CC
Avi Kivity
AppliedQuoted 3 lines · Ken CC
To make the directory architecture match the make config file
kvm/test/config-powerpc.mk.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function