sdk/emulator/qemu.git
11 years ago* YaGL added
Stanislav Vorobiov [Mon, 10 Sep 2012 11:45:30 +0000 (15:45 +0400)]
* YaGL added

11 years agotizen/build.sh: simplify tizen build system
Igor Mitsyanko [Mon, 20 Aug 2012 13:41:19 +0000 (17:41 +0400)]
tizen/build.sh: simplify tizen build system

we had too much scripts for building tizen emulator which were different from
each other in 1-2 lines. Delete redundunt scripts and make default build.sh more
flexible.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
11 years agoSound doesn't work with --enable-mixemu (commit 842be51a67028489e49fb69196c202138661a9ef)
Oleg Ogurtsov [Thu, 23 Aug 2012 05:54:59 +0000 (09:54 +0400)]
Sound doesn't work with --enable-mixemu (commit 842be51a67028489e49fb69196c202138661a9ef)

11 years agoopenGL: load lobGL calls explicitly if openGLES support is enabled
Igor Mitsyanko [Mon, 20 Aug 2012 09:26:35 +0000 (13:26 +0400)]
openGL: load lobGL calls explicitly if openGLES support is enabled

If we enable openGLES support then QEMU links with libGL and`libGLES, which
has the same symbols. This results in unpredictable behaviour.

Open libGL explicitly if openGLES is enabled and use function handlers to call
openGL functions.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
11 years agoARM: Tizen: Add ac97 audio.
Maria Shcherbina [Fri, 17 Aug 2012 13:54:49 +0000 (17:54 +0400)]
ARM: Tizen: Add ac97 audio.

11 years agoRemoved unnecessary device
Oleg Ogurtsov [Fri, 17 Aug 2012 05:54:28 +0000 (09:54 +0400)]
Removed unnecessary device

11 years agoexec.c: Fix off-by-one error in register_subpage
Tyler Hall [Wed, 25 Jul 2012 22:45:03 +0000 (18:45 -0400)]
exec.c: Fix off-by-one error in register_subpage

subpage_register() expects "end" to be the last byte in the mapping.
Registering a non-page-aligned memory region that extends up to or
beyond a page boundary causes subpage_register() to silently fail
through the (end >= PAGE_SIZE) check.

This bug does not cause noticeable problems for mappings that do not
extend to a page boundary, though they do register an extra byte.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
11 years agosrc/hw/maru_touchscreen.c: fix wrong buffer size to memset
Igor Mitsyanko [Wed, 1 Aug 2012 08:56:56 +0000 (12:56 +0400)]
src/hw/maru_touchscreen.c: fix wrong buffer size to memset

To clear buffer usb_touchscreen_handle_data() function called a memset function
with length longer then actual length of buffer, it resulted in USB packet corruption.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop
Evgeny Voevodin [Fri, 27 Jul 2012 06:23:49 +0000 (10:23 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop

Conflicts:
configure
fpu/softfloat.h
hw/virtio-pci.c
tizen/emulator_configure.sh
tizen/src/Makefile
tizen/src/Makefile.tizen
tizen/src/emulator.c
tizen/src/maru_sdl.c
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java
tizen/src/skin/maruskin_operation.c
vl.c

12 years agoWorkaround for work brightness. Moved to fifth slot.
Oleg Ogurtsov [Thu, 26 Jul 2012 10:43:03 +0000 (14:43 +0400)]
Workaround for work brightness. Moved to fifth slot.

12 years agohw/gles2.c: fix inconsistency in debug macros
Igor Mitsyanko [Thu, 26 Jul 2012 08:08:08 +0000 (12:08 +0400)]
hw/gles2.c: fix inconsistency in debug macros

Bring gles2.c debug macros handling to conformance with other gles files.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoconfigure: fix -enable-debug-gles option
Igor Mitsyanko [Thu, 26 Jul 2012 07:49:10 +0000 (11:49 +0400)]
configure: fix -enable-debug-gles option

Opengles debug was not enabled when you specify -enable-debug-gles option because
it defined wrong varible.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agohw/gles2_escommon_calls.c: do not redefine pixel variable
Igor Mitsyanko [Thu, 26 Jul 2012 07:28:38 +0000 (11:28 +0400)]
hw/gles2_escommon_calls.c: do not redefine pixel variable

pixel variable was defined twice in glCompressedTexImage2D function, because of
these data was never transfered and we had memory leak.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agotizen/src/hw/maru_arm_soc.c: Fix misleading definitions' names.
Evgeny Voevodin [Thu, 26 Jul 2012 06:25:12 +0000 (10:25 +0400)]
tizen/src/hw/maru_arm_soc.c: Fix misleading definitions' names.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agohw/virtio-mmio.c: Add automatic attach to transport
Evgeny Voevodin [Fri, 20 Jul 2012 04:27:44 +0000 (08:27 +0400)]
hw/virtio-mmio.c: Add automatic attach to transport

When exact virtio-mmio.x bus is not specified MMIO and PCI
should behave similarly - find a free transport.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoMakefile.target: copy openGLES libraries only if they're old
Igor Mitsyanko [Wed, 25 Jul 2012 11:43:56 +0000 (15:43 +0400)]
Makefile.target: copy openGLES libraries only if they're old

We want to replace GLES and EGL libraries used by qemu executable with
libraries pointed by QEMU configure script only if libraries were updated,
this should prevent unnesassary copy operation.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agotizen/src/maru_sdl.c: Fix improper rotate/resize operation for ARM.
Evgeny Voevodin [Fri, 27 Jul 2012 06:30:02 +0000 (10:30 +0400)]
tizen/src/maru_sdl.c: Fix improper rotate/resize operation for ARM.

    In general, we gave three surfaces:
    guest screen - surface_qemu
    real screen - surface_screen
    temporary - processing_screen

    qemu_ds_refresh() is called with some period.
    When rotate/resize happens then call graph is:

    qemu_ds_refresh()
     ->maruskin_sdl_init()
         ->SDL_Init

     ->vga_hw_invalidate() - this is needed to let exynos_4210_fimd know
                             that it should redraw it's content
     ->vga_hw_update()->
       <x86>
         ->vga_update_display()
              always draw into surface_qemu
       <ARM>
         ->exynos4210_fimd_update()
              if content changed draw into surface_qemu

             Both of them call:

              ->dpy_update()
                   ->qemu_ds_update() --- SIGNAL ---> run_qemu_update()
                                                         ->qemu_update()

    qemu_update() calls _sdl_init() if screen alteration was captured.

    The fix is to not return after _sdl_init() happens and process an
    old surface_qemu into surface_screen.

    The thing is that exynos4210_fimd draws its conten only if it changed.
    During execution of vga_hw_update() exynos4210_fimd drew its content into
    current surface_qemu. After that new surface_qemu is created in
    qemu_update(). And if we will return immediately after new surface created,
    exynos4210_fimd won't redraw its content to a new surface_qemu.

    maru_vga works because it redraws its content always and doesn't care
    if it changed or not.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop
Evgeny Voevodin [Mon, 23 Jul 2012 10:47:18 +0000 (14:47 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop

Conflicts:
hw/virtio-pci.c
tizen/build.sh
tizen/qemu_configure.sh
tizen/src/Makefile
tizen/src/Makefile.tizen
tizen/src/emulator.c
tizen/src/hw/maru_codec.c
tizen/src/hw/maru_touchscreen.c
tizen/src/maru_sdl.h
vl.c

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoOpenGLES dll-libs
Maria Shcherbina [Mon, 16 Jul 2012 07:07:25 +0000 (11:07 +0400)]
OpenGLES dll-libs

12 years agoi386 tcg-target: fix to compile on 64-bit hosts
Igor Mitsyanko [Fri, 13 Jul 2012 16:37:03 +0000 (20:37 +0400)]
i386 tcg-target: fix to compile on 64-bit hosts

There were some bugs in i386 tcg-target code for 64 bit hosts path which wouldnt allow
to compile qemu for 64 bit host.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agolibav: add x86_64 av libraries to index
Igor Mitsyanko [Fri, 13 Jul 2012 16:34:20 +0000 (20:34 +0400)]
libav: add x86_64 av libraries to index

64 bit version of videocodec libraries and two headers were not tracked by git and therefore
were not presented on remote repository. This resulted in build failure on 64-bit hosts.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agohost GLES libs: change runtime path to QEMU executable directory
Igor Mitsyanko [Fri, 13 Jul 2012 13:57:15 +0000 (17:57 +0400)]
host GLES libs: change runtime path to QEMU executable directory

Windows searches for DLL libraries only in system paths and in executable
directory, therefore MINGW GCC ignores rpath linker option.
Copy host OpenGLES libraries to the same directory as QEMU executable rather then
to ./lib/gles folder, do the same on linux and windows host.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoMakefile.target: fixed gles-libs path setting
Maria Shcherbina [Fri, 13 Jul 2012 07:07:22 +0000 (11:07 +0400)]
Makefile.target: fixed gles-libs path setting

12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop
Evgeny Voevodin [Fri, 13 Jul 2012 03:55:13 +0000 (07:55 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop

Conflicts:
target-i386/translate.c
        This kept unchanged since ARM emulator based on fresher qemu v1.1.0

tizen/src/maru_sdl.c
        Merged successfully.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agogl fixes on win32
Maria Shcherbina [Thu, 12 Jul 2012 08:15:31 +0000 (12:15 +0400)]
gl fixes on win32

Signed-off-by: Maria Shcherbina <m.shcherbina@samsung.com>
12 years agohax-all.c: use new memory API for hax memory logging
Igor Mitsyanko [Thu, 12 Jul 2012 08:02:59 +0000 (12:02 +0400)]
hax-all.c: use new memory API for hax memory logging

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agomingw: fix HAX-enabled build
Igor Mitsyanko [Thu, 12 Jul 2012 07:23:04 +0000 (11:23 +0400)]
mingw: fix HAX-enabled build

HAX-enabled build was broken after merging with upstream master, this
commit tries to fix it.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Maria Shcherbina <m.shcherbina@samsung.com>
12 years agotizen/src/maru_sdl.c: Fix improper operations with SDL surfaces.
Evgeny Voevodin [Wed, 11 Jul 2012 10:09:23 +0000 (14:09 +0400)]
tizen/src/maru_sdl.c: Fix improper operations with SDL surfaces.

The bug is that vga_hw_update() invokes dpy_update() where
qemu_ds_update() is called.
qemu_ds_update() sends a signal to thread run_qemu_update() waiting
to be released and to invoke qemu_update().
After this happens there are two ways possible:
1. run_qemu_update() is released, got mutex and qemu_update() is called.
   Simultaneously qemu_ds_refresh() is waiting on the mutex to perform
   SDL_SetVideoMode(). This is most common way.
2. If we unlucky,
   vga_hw_update() returns and qemu_ds_refresh() gets mutex before
   run_qemu_update() is released. In this way SDL_SetVideoMode() is called
   before qemu_update() is invoked. This leads qemu_update() to operate on
   invalidated surface_qemu.
So, to solve this problem we can add a flag indicating that qemu_update()
finished it's work and that we free to invoke SDL_SetVideoMode().
Or we can simply move vga_hw_update() invocation after SDL_SetVideoMode() call.
We chose the second variant as more efficient.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoTIZEN: Free SDL surfaces at exit.
Evgeny Voevodin [Wed, 11 Jul 2012 09:49:56 +0000 (13:49 +0400)]
TIZEN: Free SDL surfaces at exit.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agotizen/src/Makefile.tizen: Set -O0 for debug configuration
Evgeny Voevodin [Wed, 11 Jul 2012 09:41:09 +0000 (13:41 +0400)]
tizen/src/Makefile.tizen: Set -O0 for debug configuration

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoexynos4210_rtc: change to standard qemu function
Oleg Ogurtsov [Wed, 11 Jul 2012 08:30:39 +0000 (12:30 +0400)]
exynos4210_rtc: change to standard qemu function

12 years agoARM: add MARU brightness
Oleg Ogurtsov [Wed, 11 Jul 2012 06:33:57 +0000 (10:33 +0400)]
ARM: add MARU brightness

12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop
Evgeny Voevodin [Mon, 9 Jul 2012 06:57:06 +0000 (10:57 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0-develop

Conflicts:
tcg/i386/tcg-target.c
        Left untouched ld/st optimization from upstream patches.

tizen/qemu_configure.sh
vl.c
        Left untouched our implementation of switching between enabled
        or disable VirtioGL for target.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoARM, x86: Tizen: disable pie and enable ld/st
Evgeny Voevodin [Fri, 6 Jul 2012 08:53:42 +0000 (12:53 +0400)]
ARM, x86: Tizen: disable pie and enable ld/st

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoAdded I/O port support to Tizen VPCI
Stanislav Vorobiov [Tue, 3 Jul 2012 12:22:54 +0000 (16:22 +0400)]
Added I/O port support to Tizen VPCI

12 years agotizen/qemu_configure_arm.sh: Restore --disable-pie option.
Evgeny Voevodin [Tue, 3 Jul 2012 12:05:05 +0000 (16:05 +0400)]
tizen/qemu_configure_arm.sh: Restore --disable-pie option.

It speeds up emulation for approximately 4%

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoUpdated dgles libs
Stanislav Vorobiov [Fri, 29 Jun 2012 13:32:09 +0000 (17:32 +0400)]
Updated dgles libs

12 years agoeglGetDisplay now returns the same display handle for every call.
Stanislav Vorobiov [Fri, 29 Jun 2012 13:28:21 +0000 (17:28 +0400)]
eglGetDisplay now returns the same display handle for every call.
Fixed races in gles.
Replaced unpack alignment with pack/unpack alignment.

12 years agoDon't open new display on each query, just use the first one
Stanislav Vorobiov [Fri, 29 Jun 2012 13:26:50 +0000 (17:26 +0400)]
Don't open new display on each query, just use the first one

12 years agoMake dgles install when it changes
Stanislav Vorobiov [Fri, 29 Jun 2012 13:25:18 +0000 (17:25 +0400)]
Make dgles install when it changes

12 years agomaru ARM board: clean up code
Igor Mitsyanko [Thu, 28 Jun 2012 17:00:08 +0000 (21:00 +0400)]
maru ARM board: clean up code

Remove MARU ARM board template from maru_board.c, it doesn't makes sense to take
an approach like this because x86 maru machine and arm maru machine are compiled for
different executables.
Drop leftovers of maru_board.c from maru_arm_board.c. Actually honour user-specified
RAM size for maru arm board, set bottom limit to 512 MB.

Do not initialize G3D MALI400 device in maru ARM SoC, we only need gles device from it
and we can initialize it explicitly.

Also bugs fixed:
- not registering ROM memory regions for migration during maru ARM SoC initialization;
- wrong chipid_and_omr array size;
- missleading initialization of ROM memory region alias.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agohw/usb/dev-storage.c: fix compile warning because of MARU define
Igor Mitsyanko [Thu, 28 Jun 2012 15:01:21 +0000 (19:01 +0400)]
hw/usb/dev-storage.c: fix compile warning because of MARU define

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoMakefile.tizen: remove duplicates
Igor Mitsyanko [Thu, 28 Jun 2012 14:35:05 +0000 (18:35 +0400)]
Makefile.tizen: remove duplicates

Simplify Makefile by removing duplicate target-specific includes.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agotizen Makefile: fix openGLES build installation
Igor Mitsyanko [Thu, 28 Jun 2012 13:59:25 +0000 (17:59 +0400)]
tizen Makefile: fix openGLES build installation

Tizen's Makefile installs openGLES libraries only if CONFIG_OPENGLES is defined
in a shell environment. But currently makefile doesnt export this variable to it's
spawned shell and consequently openGLES libraries are not installed when they
supposed be installed. Export CONFIG_OPENGLES in a Makefile to fix this bug.

Also add some information messages about performed copy operations.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agolibav: handle codec libraries linking Score way
Igor Mitsyanko [Thu, 28 Jun 2012 13:54:27 +0000 (17:54 +0400)]
libav: handle codec libraries linking Score way

Score now have a default way to build and link QEMU with avcodec libraries both
for i386 and x86_64 hosts, we need to use it instead of our own.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0
Igor Mitsyanko [Thu, 28 Jun 2012 11:40:25 +0000 (15:40 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0

12 years agotizen install: account for existing targets
Igor Mitsyanko [Wed, 27 Jun 2012 15:55:32 +0000 (19:55 +0400)]
tizen install: account for existing targets

Currently tizen's Makefile install target doesn't check what target emulators were actually
build and tries to install both x86 and ARM emulators. This results in error when only
one emulator was built.
This commit fixes this.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agotizen/build.sh: build both x86 and ARM emulator simultaneously
Igor Mitsyanko [Wed, 27 Jun 2012 14:33:00 +0000 (18:33 +0400)]
tizen/build.sh: build both x86 and ARM emulator simultaneously

This reduces overall build time and makes "make clean" work correctly. Separate
targets could be build by invoking build.sh script with a specific argument, for
example:
$ build.sh arm

Also, rename "efence" build configuration to "debug" configuration.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Conflicts:

tizen/qemu_configure_arm.sh

12 years agovirtio GL: always announce gl support to guest
Igor Mitsyanko [Wed, 27 Jun 2012 13:29:04 +0000 (17:29 +0400)]
virtio GL: always announce gl support to guest

x86 emulator always needs to know if virtio GL support is enabled in QEMU. Currently
we only announce gl support to guest if QEMU is configurd with --enable-gl. When
configured with --disable-gl, QEMU doesn't announce GL support to guest while guest
assumes such a support by default. This results in incorrect operation of x86 emulator.
Fix this by always announcing virtio GL support to guest, it doesn't make any difference
for ARM emulator.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agovirtio-gl: allow multitarget configuration with virtio GL support
Igor Mitsyanko [Wed, 27 Jun 2012 13:05:26 +0000 (17:05 +0400)]
virtio-gl: allow multitarget configuration with virtio GL support

Virtio GL support now is separated into host and target parts, therefore making it
possible to configure QEMU for miltiple targets even if one target doesn't
have a virtio GL support.
Drop #ifdef _WIN32 around #ifdef CONFIG_GL in source and makefile files, check
this in configure script instead.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoexynos4210_cmu: Add vmstate structure for Exynos4210ClockState
Maksim Kozlov [Tue, 26 Jun 2012 17:19:21 +0000 (21:19 +0400)]
exynos4210_cmu: Add vmstate structure for Exynos4210ClockState

12 years agoexynos4210_cmu: Fix size of registers array
Maksim Kozlov [Tue, 26 Jun 2012 16:50:40 +0000 (20:50 +0400)]
exynos4210_cmu: Fix size of registers array

12 years ago[Title] Patch qemu_ld/st optimization according to qemu 1.1
Yeongkyoon Lee [Sat, 30 Jun 2012 05:22:39 +0000 (14:22 +0900)]
[Title] Patch qemu_ld/st optimization according to qemu 1.1
[Type] bugfix
[Module] TCG
[Priority] Medium
[Jira#]
[Redmine#]
[Problem] Emulator doesn't work
[Cause] qemu 1.0 based code
[Solution] Upgrade to qemu 1.1
[TestCase] Not tested (no platform image)

12 years agotizen/src/sdl_rotate.c: Fix buffer overrun error reported by efence
Evgeny Voevodin [Wed, 27 Jun 2012 09:13:02 +0000 (13:13 +0400)]
tizen/src/sdl_rotate.c: Fix buffer overrun error reported by efence

Destination pixel is calculated using four source pixels. When source
pixel is got from last line or row next rigth or bottom pixel could
be not existent since we reached the end of src->pixels.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agohw/exynos4210.c: Fix misleading initialization of IROM mirror
Evgeny Voevodin [Wed, 27 Jun 2012 03:38:03 +0000 (07:38 +0400)]
hw/exynos4210.c: Fix misleading initialization of IROM mirror

We want to mirror whole IROM and should pass zero instead of
EXYNOS4210_IROM_BASE_ADDR (though it equals to zero too) since
memory_region_init_alias takes an offset within an original
region as an argument.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoMakefile.tizen: add prefix to TARGET_DIRS variable
Igor Mitsyanko [Tue, 26 Jun 2012 10:07:14 +0000 (14:07 +0400)]
Makefile.tizen: add prefix to TARGET_DIRS variable

If QEMU configured for several targt simultaniously, then string -I$(SRC_PATH)/$(TARGET_DIRS)
will result in compile error because $(TARGET_DIRS) will expand to multiword string.
Add prefix to avoid this problem.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agohw/exynos4210_pwm.c: Fix STOP status in tick handler.
Evgeny Voevodin [Tue, 26 Jun 2012 09:24:15 +0000 (13:24 +0400)]
hw/exynos4210_pwm.c: Fix STOP status in tick handler.

START/STOP bit was not cleaned correctly.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agotarget-i386: fix ld/st optimization
Igor Mitsyanko [Mon, 25 Jun 2012 12:29:41 +0000 (16:29 +0400)]
target-i386: fix ld/st optimization

Load/store TCG optimization for i386 target was broken after merging with upstream
QEMU. This patch fixes this.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agold/st optimization: define only for x86 target
Igor Mitsyanko [Wed, 20 Jun 2012 12:37:41 +0000 (16:37 +0400)]
ld/st optimization: define only for x86 target

ld/st optiization implemented for x86 targets only, it's a target-specific
configure option, not host-wide.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
12 years agoEnabled Electric Fence support in QEMU
Stanislav Vorobiov [Mon, 25 Jun 2012 08:52:36 +0000 (12:52 +0400)]
Enabled Electric Fence support in QEMU

12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0
Evgeny Voevodin [Mon, 25 Jun 2012 05:46:03 +0000 (09:46 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0

Conflicts:
hw/pc.c

Restored bios failure message.
It's generated in hw/pc_sysfw.c.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.
Stanislav Vorobiov [Wed, 20 Jun 2012 08:30:49 +0000 (12:30 +0400)]
ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.

After some long period of time Linux kernel hanged due to
ptimer_get_count may return 0 before timer interrupt occurs,
thus, causing FRC to jump back in time

12 years agotizen/src/hw/maru_arm_pmu.c: Drop timer-based decision for reset or shutdown.
Evgeny Voevodin [Wed, 20 Jun 2012 05:53:21 +0000 (09:53 +0400)]
tizen/src/hw/maru_arm_pmu.c: Drop timer-based decision for reset or shutdown.

Kernel's mach-tizen got simple and correct code to handle shutdown and reset.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agotizen/src/hw/maru_pm.h: Fix undefined reference for ARM.
Evgeny Voevodin [Wed, 20 Jun 2012 03:35:48 +0000 (07:35 +0400)]
tizen/src/hw/maru_pm.h: Fix undefined reference for ARM.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoARM: Fix "white screen" problem
Maksim Kozlov [Tue, 19 Jun 2012 12:06:03 +0000 (16:06 +0400)]
ARM: Fix "white screen" problem

There was a problem with redrawing of the emulator screen by some
window managers. This problem appears only on ARM emulator with
exynos4210 FIMD usage. Also, this problem doesn't appear when SDL
window isn't integrated into emulator skin with SWT.EMBEDDED flag.

Normally (without skin) the host window system repairs window when
receives the paint event. But in our case this events is caught by
SWT library and window system doesn't do that. We should do that by
ourself. maru_vga update the window continuously. But exynos4210 FIMD
calls update function only when there are changes on the screen. So
sometimes we can see the "white screen" until click in the screen.

If we fix that in the FIMD, we will get overhead. SDL more suuitable
for that.

12 years ago* Added --disable-pie so we can attach to running QEMU with gdb
Stanislav Vorobiov [Tue, 19 Jun 2012 07:07:12 +0000 (11:07 +0400)]
* Added --disable-pie so we can attach to running QEMU with gdb

12 years agoFixed get system time from host machine for Windows
Oleg Ogurtsov [Mon, 18 Jun 2012 07:22:16 +0000 (11:22 +0400)]
Fixed get system time from host machine for Windows

12 years agofix build.sh for win32
Maria Shcherbina [Mon, 18 Jun 2012 07:40:54 +0000 (11:40 +0400)]
fix build.sh for win32

12 years agoFixed a bug with alignment. Also, we now fail the gles2 transfer
Stanislav Vorobiov [Mon, 18 Jun 2012 15:46:15 +0000 (19:46 +0400)]
Fixed a bug with alignment. Also, we now fail the gles2 transfer
if we meet at least one virtual address which is not mapped to any
physical page, target seems to feed us such addresses sometimes, this
is to be studied

12 years agotizen/distrib/libav/*: Added 64-bit libav
Stanislav Vorobiov [Wed, 30 May 2012 09:04:39 +0000 (13:04 +0400)]
tizen/distrib/libav/*: Added 64-bit libav

Conflicts:

tizen/distrib/libav/tizen_configure
tizen/src/Makefile.tizen

12 years agoEmulatorSkin.java: Fixed for old/new SWT version support
Stanislav Vorobiov [Thu, 14 Jun 2012 11:17:46 +0000 (15:17 +0400)]
EmulatorSkin.java: Fixed for old/new SWT version support

12 years ago* maru_codec fixed for ARM/x86_64
Stanislav Vorobiov [Thu, 31 May 2012 09:02:41 +0000 (13:02 +0400)]
* maru_codec fixed for ARM/x86_64

12 years agotizen/src/maru_sdl.c: Fix SDL_Quit() call and invalidation handling
Evgeny Voevodin [Thu, 14 Jun 2012 10:49:20 +0000 (14:49 +0400)]
tizen/src/maru_sdl.c: Fix SDL_Quit() call and invalidation handling

SDL_Quit is called at exit.
Added invalidate when SDL video mode changes.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoMerge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0
Evgeny Voevodin [Thu, 14 Jun 2012 08:52:25 +0000 (12:52 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-arm-v1.1.0

12 years agotizen/src/hw/maru_arm.c: Enable and add gles support to board.
Evgeny Voevodin [Thu, 14 Jun 2012 08:40:03 +0000 (12:40 +0400)]
tizen/src/hw/maru_arm.c: Enable and add gles support to board.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoTizen ARM: Add gles libs.
Igor Mitsyanko [Thu, 14 Jun 2012 08:48:15 +0000 (12:48 +0400)]
Tizen ARM: Add gles libs.

12 years agoTizen ARM: Add maru_arm board.
Evgeny Voevodin [Thu, 14 Jun 2012 06:44:10 +0000 (10:44 +0400)]
Tizen ARM: Add maru_arm board.

This commit adds basic maru_arm specific devices.
Few common files are modyfied to support ARM.
Also build.sh is modyfied to find out amount of
host CPUs and speed up compiling.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoTizen ARM: Add and improve ARM SOC specific files.
Evgeny Voevodin [Thu, 14 Jun 2012 06:29:42 +0000 (10:29 +0400)]
Tizen ARM: Add and improve ARM SOC specific files.

This commit adds and improves files related to Exynos4210 SOC
emulation. This SOC will be used in maru ARM board.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoVirtio: Add virtio-mmio support.
Evgeny Voevodin [Wed, 13 Jun 2012 07:40:54 +0000 (11:40 +0400)]
Virtio: Add virtio-mmio support.

We need this patch-set be included to let ARM board use virtio
interface to speed up execution.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agovirtio-9p-handle: define AT_EMPTY_PATH if needed
Serge Hallyn [Fri, 24 Feb 2012 19:51:43 +0000 (13:51 -0600)]
virtio-9p-handle: define AT_EMPTY_PATH if needed

If AT_EMPTY_PATH is not in one of the included files, go ahead and
define it.  qemu won't compile on ubuntu for me without this.

(Note - alternatively we could #include <linux/fcntl.h> to pick
up the definitions there)

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
12 years agohw/pc.c: Move BIOS failure warning to hw/pc_sysfw.c.
Evgeny Voevodin [Sat, 9 Jun 2012 09:21:44 +0000 (13:21 +0400)]
hw/pc.c: Move BIOS failure warning to hw/pc_sysfw.c.

In v1.1.0 BIOS file presence check moved to hw/pc_sysfw.c, so we
need to generate message from there.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agotizen/src/: Fix compile warnings.
Evgeny Voevodin [Fri, 15 Jun 2012 03:57:25 +0000 (07:57 +0400)]
tizen/src/: Fix compile warnings.

tizen/src/hw/maru_board.c: We can't just make #include because
for example maru_codec.h contains static definitions and it will
generate even more warnings.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years agoUpgrade to upstream v1.1.0.
Evgeny Voevodin [Fri, 8 Jun 2012 09:45:29 +0000 (13:45 +0400)]
Upgrade to upstream v1.1.0.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
12 years ago[Title] Add logging
syeon.hwang [Tue, 15 May 2012 08:23:31 +0000 (17:23 +0900)]
[Title] Add logging
[Type]
[Module] Emulator/
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] add module - print back trace
jihye kim [Fri, 11 May 2012 08:23:06 +0000 (17:23 +0900)]
[Title] add module - print back trace
[Type] work
[Module] emulator (qemu)
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] include header
giwoong.kim [Wed, 9 May 2012 08:23:33 +0000 (17:23 +0900)]
[Title] include header
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause] windows
[Solution]
[TestCase]

12 years ago[Title] convert sprintf to snprintf & update err table
giwoong.kim [Wed, 9 May 2012 07:57:17 +0000 (16:57 +0900)]
[Title] convert sprintf to snprintf & update err table
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] update err table
giwoong.kim [Wed, 9 May 2012 06:25:48 +0000 (15:25 +0900)]
[Title] update err table
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause] popup message
[Solution]
[TestCase]

12 years ago[Title] FFmpeg libraries was wrong.
Kitae Kim [Wed, 9 May 2012 01:11:58 +0000 (10:11 +0900)]
[Title] FFmpeg libraries was wrong.
[Type]
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] some FFmpeg libraries and header was missing because of .gitignore
Kitae Kim [Tue, 8 May 2012 14:17:03 +0000 (23:17 +0900)]
[Title] some FFmpeg libraries and header was missing because of .gitignore
[Type]
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Modify decoding audio part
Kitae Kim [Tue, 8 May 2012 13:56:42 +0000 (22:56 +0900)]
[Title] Modify decoding audio part
[Type] bug fix
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem] copying some codec data from host to guest was missing.
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Add api index for checking sdk version between host and guest.
Kitae Kim [Tue, 8 May 2012 11:11:31 +0000 (20:11 +0900)]
[Title] Add api index for checking sdk version between host and guest.
[Type] enhancement
[Module] emulator / codec
[Priority] major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] added maru_register_exit_msg function
giwoong.kim [Tue, 8 May 2012 09:38:33 +0000 (18:38 +0900)]
[Title] added maru_register_exit_msg function
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause] error popoup
[Solution]
[TestCase]

12 years agoMerge "[Title] Merge release-1.0 into develop branch to support hax feature. [Type...
yeongkyoon lee [Tue, 8 May 2012 06:59:30 +0000 (15:59 +0900)]
Merge "[Title] Merge release-1.0 into develop branch to support hax feature. [Type] [Module] emulator [Priority] Major [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]" into develop

12 years ago[Title] Merge release-1.0 into develop branch to support hax feature.
Kitae Kim [Tue, 8 May 2012 05:49:33 +0000 (14:49 +0900)]
[Title] Merge release-1.0 into develop branch to support hax feature.
[Type]
[Module] emulator
[Priority] Major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Error check and viewport bug fix
Sangjin Kim [Tue, 8 May 2012 05:34:25 +0000 (14:34 +0900)]
[Title] Error check and viewport bug fix
[Type] bug fix
[Module] opengl-es
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Upgrade FFmpeg library and support VC-1 and H.263+
Kitae Kim [Mon, 7 May 2012 14:29:54 +0000 (23:29 +0900)]
[Title] Upgrade FFmpeg library and support VC-1 and H.263+
[Type] feature
[Module] emulator / codec
[Priority] Major
[CQ#]
[Redmine#]
[Problem] H.263+ encoder has a bug in the previous FFmpeg version.
[Cause]
[Solution] Upgrade FFmpeg version from 0.6 to 0.7
[TestCase]

12 years ago[Title] memory exception popup
giwoong.kim [Fri, 4 May 2012 10:35:20 +0000 (19:35 +0900)]
[Title] memory exception popup
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] show one msgbox when kernel/bios/disk image exception
giwoong.kim [Fri, 4 May 2012 05:49:42 +0000 (14:49 +0900)]
[Title] show one msgbox when kernel/bios/disk image exception
[Type] enhancement
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause] error popup
[Solution]
[TestCase]

12 years ago[Title] sync with release-1.0
giwoong.kim [Wed, 2 May 2012 05:10:48 +0000 (14:10 +0900)]
[Title] sync with release-1.0
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]