Skip to content
Commit c9c8f1ef authored by Bruce Ashfield's avatar Bruce Ashfield
Browse files

oprofile/mips: do not set perf_irq for qemu mips 64



In a similar manner to the following commit:

    oprofile/mips: override register writes for qemu mips 64

    Even when oprofile timer mode is enabled, during oprofile arch init
    there are writes to registers that do not exist in the qemu malta
    64 bit pseudo machine.

    To allow initialization to continue and the fallback to oprofile
    timer mode to take effect, we stub the register writes.

    These two defines are only appropriate for qemu-system-mips.
    This should not merge to a common location, and only be applied
    to emulated boards.

We also cannot set perf_irq to mipsxx_perfcount_handler during oprofile
arch init, or unsupported register reads will be triggered before the
fallback to timer mode occurs. This commit is also only appropriate for
qemu mips based boards, and should not be applied to any general branch.

Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
parent ee5d1631
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment