annotate hotspot/src/cpu/s390/vm/icache_s390.cpp @ 42065:6032b31e3719

8167673: [s390] The s390 port. Summary: template interpreter, C1, C2 Reviewed-by: kvn, simonis
author goetz
date Thu, 13 Oct 2016 14:49:34 +0200
parents
children
rev   line source
goetz@42065 1 /*
goetz@42065 2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
goetz@42065 3 * Copyright (c) 2016 SAP SE. All rights reserved.
goetz@42065 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
goetz@42065 5 *
goetz@42065 6 * This code is free software; you can redistribute it and/or modify it
goetz@42065 7 * under the terms of the GNU General Public License version 2 only, as
goetz@42065 8 * published by the Free Software Foundation.
goetz@42065 9 *
goetz@42065 10 * This code is distributed in the hope that it will be useful, but WITHOUT
goetz@42065 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
goetz@42065 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
goetz@42065 13 * version 2 for more details (a copy is included in the LICENSE file that
goetz@42065 14 * accompanied this code).
goetz@42065 15 *
goetz@42065 16 * You should have received a copy of the GNU General Public License version
goetz@42065 17 * 2 along with this work; if not, write to the Free Software Foundation,
goetz@42065 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
goetz@42065 19 *
goetz@42065 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
goetz@42065 21 * or visit www.oracle.com if you need additional information or have any
goetz@42065 22 * questions.
goetz@42065 23 *
goetz@42065 24 */
goetz@42065 25
goetz@42065 26 #include "runtime/icache.hpp"
goetz@42065 27
goetz@42065 28 // interface (see ICache::flush_icache_stub_t):
goetz@42065 29 // address addr (Z_R2, ignored)
goetz@42065 30 // int lines (Z_R3, ignored)
goetz@42065 31 // int magic (Z_R4)
goetz@42065 32 //
goetz@42065 33 // returns: int (Z_R2)
goetz@42065 34 //
goetz@42065 35 // Note: z/Architecture doesn't need explicit flushing, so this is implemented as a nop.
goetz@42065 36
goetz@42065 37 // Call c function (which just does nothing).
goetz@42065 38 int z_flush_icache(address start, int lines, int magic) { return magic; }
goetz@42065 39
goetz@42065 40 void ICacheStubGenerator::generate_icache_flush(ICache::flush_icache_stub_t* flush_icache_stub) {
goetz@42065 41 *flush_icache_stub = (ICache::flush_icache_stub_t)z_flush_icache;
goetz@42065 42
goetz@42065 43 // First call to flush itself.
goetz@42065 44 ICache::invalidate_range((address)(*flush_icache_stub), 0);
goetz@42065 45 };
goetz@42065 46